home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / enscript.4 / enscript / enscript-1.4.0 / configure < prev    next >
Encoding:
Text File  |  1996-06-29  |  93.8 KB  |  3,530 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.8 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-cc(=CC)      use system's native compiler (or compiler CC)"
  16. ac_help="$ac_help
  17.   --with-media(=MEDIA)      use output media Letter (MEDIA), default is A4"
  18. ac_help="$ac_help
  19.   --enable-debug      enable debugging"
  20. ac_help="$ac_help
  21.   --disable-nls           do not use Native Language Support"
  22. ac_help="$ac_help
  23.   --with-included-gettext use the GNU gettext library included here"
  24. ac_help="$ac_help
  25.   --with-catgets          use catgets functions if available"
  26.  
  27. # Initialize some variables set by options.
  28. # The variables have the same names as the options, with
  29. # dashes changed to underlines.
  30. build=NONE
  31. cache_file=./config.cache
  32. exec_prefix=NONE
  33. host=NONE
  34. no_create=
  35. nonopt=NONE
  36. no_recursion=
  37. prefix=NONE
  38. program_prefix=NONE
  39. program_suffix=NONE
  40. program_transform_name=s,x,x,
  41. silent=
  42. site=
  43. srcdir=
  44. target=NONE
  45. verbose=
  46. x_includes=NONE
  47. x_libraries=NONE
  48. bindir='${exec_prefix}/bin'
  49. sbindir='${exec_prefix}/sbin'
  50. libexecdir='${exec_prefix}/libexec'
  51. datadir='${prefix}/share'
  52. sysconfdir='${prefix}/etc'
  53. sharedstatedir='${prefix}/com'
  54. localstatedir='${prefix}/var'
  55. libdir='${exec_prefix}/lib'
  56. includedir='${prefix}/include'
  57. oldincludedir='/usr/include'
  58. infodir='${prefix}/info'
  59. mandir='${prefix}/man'
  60.  
  61. # Initialize some other variables.
  62. subdirs=
  63. MFLAGS= MAKEFLAGS=
  64.  
  65. ac_prev=
  66. for ac_option
  67. do
  68.  
  69.   # If the previous option needs an argument, assign it.
  70.   if test -n "$ac_prev"; then
  71.     eval "$ac_prev=\$ac_option"
  72.     ac_prev=
  73.     continue
  74.   fi
  75.  
  76.   case "$ac_option" in
  77.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  78.   *) ac_optarg= ;;
  79.   esac
  80.  
  81.   # Accept the important Cygnus configure options, so we can diagnose typos.
  82.  
  83.   case "$ac_option" in
  84.  
  85.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  86.     ac_prev=bindir ;;
  87.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  88.     bindir="$ac_optarg" ;;
  89.  
  90.   -build | --build | --buil | --bui | --bu)
  91.     ac_prev=build ;;
  92.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  93.     build="$ac_optarg" ;;
  94.  
  95.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  96.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  97.     ac_prev=cache_file ;;
  98.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  99.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  100.     cache_file="$ac_optarg" ;;
  101.  
  102.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  103.     ac_prev=datadir ;;
  104.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  105.   | --da=*)
  106.     datadir="$ac_optarg" ;;
  107.  
  108.   -disable-* | --disable-*)
  109.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  110.     # Reject names that are not valid shell variable names.
  111.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  112.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  113.     fi
  114.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  115.     eval "enable_${ac_feature}=no" ;;
  116.  
  117.   -enable-* | --enable-*)
  118.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  119.     # Reject names that are not valid shell variable names.
  120.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  121.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  122.     fi
  123.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  124.     case "$ac_option" in
  125.       *=*) ;;
  126.       *) ac_optarg=yes ;;
  127.     esac
  128.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  129.  
  130.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  131.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  132.   | --exec | --exe | --ex)
  133.     ac_prev=exec_prefix ;;
  134.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  135.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  136.   | --exec=* | --exe=* | --ex=*)
  137.     exec_prefix="$ac_optarg" ;;
  138.  
  139.   -gas | --gas | --ga | --g)
  140.     # Obsolete; use --with-gas.
  141.     with_gas=yes ;;
  142.  
  143.   -help | --help | --hel | --he)
  144.     # Omit some internal or obsolete options to make the list less imposing.
  145.     # This message is too long to be a string in the A/UX 3.1 sh.
  146.     cat << EOF
  147. Usage: configure [options] [host]
  148. Options: [defaults in brackets after descriptions]
  149. Configuration:
  150.   --cache-file=FILE       cache test results in FILE
  151.   --help                  print this message
  152.   --no-create             do not create output files
  153.   --quiet, --silent       do not print \`checking...' messages
  154.   --version               print the version of autoconf that created configure
  155. Directory and file names:
  156.   --prefix=PREFIX         install architecture-independent files in PREFIX
  157.                           [$ac_default_prefix]
  158.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  159.                           [same as prefix]
  160.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  161.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  162.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  163.   --datadir=DIR           read-only architecture-independent data in DIR
  164.                           [PREFIX/share]
  165.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  166.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  167.                           [PREFIX/com]
  168.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  169.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  170.   --includedir=DIR        C header files in DIR [PREFIX/include]
  171.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  172.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  173.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  174.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  175.   --program-prefix=PREFIX prepend PREFIX to installed program names
  176.   --program-suffix=SUFFIX append SUFFIX to installed program names
  177.   --program-transform-name=PROGRAM
  178.                           run sed PROGRAM on installed program names
  179. EOF
  180.     cat << EOF
  181. Host type:
  182.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  183.   --host=HOST             configure for HOST [guessed]
  184.   --target=TARGET         configure for TARGET [TARGET=HOST]
  185. Features and packages:
  186.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  187.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  188.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  189.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  190.   --x-includes=DIR        X include files are in DIR
  191.   --x-libraries=DIR       X library files are in DIR
  192. EOF
  193.     if test -n "$ac_help"; then
  194.       echo "--enable and --with options recognized:$ac_help"
  195.     fi
  196.     exit 0 ;;
  197.  
  198.   -host | --host | --hos | --ho)
  199.     ac_prev=host ;;
  200.   -host=* | --host=* | --hos=* | --ho=*)
  201.     host="$ac_optarg" ;;
  202.  
  203.   -includedir | --includedir | --includedi | --included | --include \
  204.   | --includ | --inclu | --incl | --inc)
  205.     ac_prev=includedir ;;
  206.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  207.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  208.     includedir="$ac_optarg" ;;
  209.  
  210.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  211.     ac_prev=infodir ;;
  212.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  213.     infodir="$ac_optarg" ;;
  214.  
  215.   -libdir | --libdir | --libdi | --libd)
  216.     ac_prev=libdir ;;
  217.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  218.     libdir="$ac_optarg" ;;
  219.  
  220.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  221.   | --libexe | --libex | --libe)
  222.     ac_prev=libexecdir ;;
  223.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  224.   | --libexe=* | --libex=* | --libe=*)
  225.     libexecdir="$ac_optarg" ;;
  226.  
  227.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  228.   | --localstate | --localstat | --localsta | --localst \
  229.   | --locals | --local | --loca | --loc | --lo)
  230.     ac_prev=localstatedir ;;
  231.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  232.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  233.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  234.     localstatedir="$ac_optarg" ;;
  235.  
  236.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  237.     ac_prev=mandir ;;
  238.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  239.     mandir="$ac_optarg" ;;
  240.  
  241.   -nfp | --nfp | --nf)
  242.     # Obsolete; use --without-fp.
  243.     with_fp=no ;;
  244.  
  245.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  246.   | --no-cr | --no-c)
  247.     no_create=yes ;;
  248.  
  249.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  250.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  251.     no_recursion=yes ;;
  252.  
  253.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  254.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  255.   | --oldin | --oldi | --old | --ol | --o)
  256.     ac_prev=oldincludedir ;;
  257.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  258.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  259.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  260.     oldincludedir="$ac_optarg" ;;
  261.  
  262.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  263.     ac_prev=prefix ;;
  264.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  265.     prefix="$ac_optarg" ;;
  266.  
  267.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  268.   | --program-pre | --program-pr | --program-p)
  269.     ac_prev=program_prefix ;;
  270.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  271.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  272.     program_prefix="$ac_optarg" ;;
  273.  
  274.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  275.   | --program-suf | --program-su | --program-s)
  276.     ac_prev=program_suffix ;;
  277.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  278.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  279.     program_suffix="$ac_optarg" ;;
  280.  
  281.   -program-transform-name | --program-transform-name \
  282.   | --program-transform-nam | --program-transform-na \
  283.   | --program-transform-n | --program-transform- \
  284.   | --program-transform | --program-transfor \
  285.   | --program-transfo | --program-transf \
  286.   | --program-trans | --program-tran \
  287.   | --progr-tra | --program-tr | --program-t)
  288.     ac_prev=program_transform_name ;;
  289.   -program-transform-name=* | --program-transform-name=* \
  290.   | --program-transform-nam=* | --program-transform-na=* \
  291.   | --program-transform-n=* | --program-transform-=* \
  292.   | --program-transform=* | --program-transfor=* \
  293.   | --program-transfo=* | --program-transf=* \
  294.   | --program-trans=* | --program-tran=* \
  295.   | --progr-tra=* | --program-tr=* | --program-t=*)
  296.     program_transform_name="$ac_optarg" ;;
  297.  
  298.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  299.   | -silent | --silent | --silen | --sile | --sil)
  300.     silent=yes ;;
  301.  
  302.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  303.     ac_prev=sbindir ;;
  304.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  305.   | --sbi=* | --sb=*)
  306.     sbindir="$ac_optarg" ;;
  307.  
  308.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  309.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  310.   | --sharedst | --shareds | --shared | --share | --shar \
  311.   | --sha | --sh)
  312.     ac_prev=sharedstatedir ;;
  313.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  314.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  315.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  316.   | --sha=* | --sh=*)
  317.     sharedstatedir="$ac_optarg" ;;
  318.  
  319.   -site | --site | --sit)
  320.     ac_prev=site ;;
  321.   -site=* | --site=* | --sit=*)
  322.     site="$ac_optarg" ;;
  323.  
  324.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  325.     ac_prev=srcdir ;;
  326.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  327.     srcdir="$ac_optarg" ;;
  328.  
  329.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  330.   | --syscon | --sysco | --sysc | --sys | --sy)
  331.     ac_prev=sysconfdir ;;
  332.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  333.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  334.     sysconfdir="$ac_optarg" ;;
  335.  
  336.   -target | --target | --targe | --targ | --tar | --ta | --t)
  337.     ac_prev=target ;;
  338.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  339.     target="$ac_optarg" ;;
  340.  
  341.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  342.     verbose=yes ;;
  343.  
  344.   -version | --version | --versio | --versi | --vers)
  345.     echo "configure generated by autoconf version 2.8"
  346.     exit 0 ;;
  347.  
  348.   -with-* | --with-*)
  349.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  350.     # Reject names that are not valid shell variable names.
  351.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  352.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  353.     fi
  354.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  355.     case "$ac_option" in
  356.       *=*) ;;
  357.       *) ac_optarg=yes ;;
  358.     esac
  359.     eval "with_${ac_package}='$ac_optarg'" ;;
  360.  
  361.   -without-* | --without-*)
  362.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  363.     # Reject names that are not valid shell variable names.
  364.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  365.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  366.     fi
  367.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  368.     eval "with_${ac_package}=no" ;;
  369.  
  370.   --x)
  371.     # Obsolete; use --with-x.
  372.     with_x=yes ;;
  373.  
  374.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  375.   | --x-incl | --x-inc | --x-in | --x-i)
  376.     ac_prev=x_includes ;;
  377.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  378.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  379.     x_includes="$ac_optarg" ;;
  380.  
  381.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  382.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  383.     ac_prev=x_libraries ;;
  384.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  385.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  386.     x_libraries="$ac_optarg" ;;
  387.  
  388.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  389.     ;;
  390.  
  391.   *)
  392.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  393.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  394.     fi
  395.     if test "x$nonopt" != xNONE; then
  396.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  397.     fi
  398.     nonopt="$ac_option"
  399.     ;;
  400.  
  401.   esac
  402. done
  403.  
  404. if test -n "$ac_prev"; then
  405.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  406. fi
  407.  
  408. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  409.  
  410. # File descriptor usage:
  411. # 0 standard input
  412. # 1 file creation
  413. # 2 errors and warnings
  414. # 3 some systems may open it to /dev/tty
  415. # 4 used on the Kubota Titan
  416. # 6 checking for... messages and results
  417. # 5 compiler messages saved in config.log
  418. if test "$silent" = yes; then
  419.   exec 6>/dev/null
  420. else
  421.   exec 6>&1
  422. fi
  423. exec 5>./config.log
  424.  
  425. echo "\
  426. This file contains any messages produced by compilers while
  427. running configure, to aid debugging if configure makes a mistake.
  428. " 1>&5
  429.  
  430. # Strip out --no-create and --no-recursion so they do not pile up.
  431. # Also quote any args containing shell metacharacters.
  432. ac_configure_args=
  433. for ac_arg
  434. do
  435.   case "$ac_arg" in
  436.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  437.   | --no-cr | --no-c) ;;
  438.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  439.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  440.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  441.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  442.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  443.   esac
  444. done
  445.  
  446. # NLS nuisances.
  447. # Only set LANG and LC_ALL to C if already set.
  448. # These must not be set unconditionally because not all systems understand
  449. # e.g. LANG=C (notably SCO).
  450. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  451. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  452.  
  453. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  454. rm -rf conftest* confdefs.h
  455. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  456. echo > confdefs.h
  457.  
  458. # A filename unique to this package, relative to the directory that
  459. # configure is in, which we can look for to find out if srcdir is correct.
  460. ac_unique_file=latin1.txt
  461.  
  462. # Find the source files, if location was not specified.
  463. if test -z "$srcdir"; then
  464.   ac_srcdir_defaulted=yes
  465.   # Try the directory containing this script, then its parent.
  466.   ac_prog=$0
  467.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  468.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  469.   srcdir=$ac_confdir
  470.   if test ! -r $srcdir/$ac_unique_file; then
  471.     srcdir=..
  472.   fi
  473. else
  474.   ac_srcdir_defaulted=no
  475. fi
  476. if test ! -r $srcdir/$ac_unique_file; then
  477.   if test "$ac_srcdir_defaulted" = yes; then
  478.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  479.   else
  480.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  481.   fi
  482. fi
  483. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  484.  
  485. # Prefer explicitly selected file to automatically selected ones.
  486. if test -z "$CONFIG_SITE"; then
  487.   if test "x$prefix" != xNONE; then
  488.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  489.   else
  490.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  491.   fi
  492. fi
  493. for ac_site_file in $CONFIG_SITE; do
  494.   if test -r "$ac_site_file"; then
  495.     echo "loading site script $ac_site_file"
  496.     . "$ac_site_file"
  497.   fi
  498. done
  499.  
  500. if test -r "$cache_file"; then
  501.   echo "loading cache $cache_file"
  502.   . $cache_file
  503. else
  504.   echo "creating cache $cache_file"
  505.   > $cache_file
  506. fi
  507.  
  508. ac_ext=c
  509. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  510. ac_cpp='$CPP $CPPFLAGS'
  511. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  512. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  513.  
  514. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  515.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  516.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  517.     ac_n= ac_c='
  518. ' ac_t='    '
  519.   else
  520.     ac_n=-n ac_c= ac_t=
  521.   fi
  522. else
  523.   ac_n= ac_c='\c' ac_t=
  524. fi
  525.  
  526.  
  527.  
  528.  
  529.  
  530. # From configure.in Revision: 1.18 
  531.  
  532. PACKAGE=enscript
  533. VERSION=1.4.0
  534. cat >> confdefs.h <<EOF
  535. #define PACKAGE "$PACKAGE"
  536. EOF
  537.  
  538. cat >> confdefs.h <<EOF
  539. #define VERSION "$VERSION"
  540. EOF
  541.  
  542.  
  543.  
  544.  
  545. ac_aux_dir=
  546. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  547.   if test -f $ac_dir/install-sh; then
  548.     ac_aux_dir=$ac_dir
  549.     ac_install_sh="$ac_aux_dir/install-sh -c"
  550.     break
  551.   elif test -f $ac_dir/install.sh; then
  552.     ac_aux_dir=$ac_dir
  553.     ac_install_sh="$ac_aux_dir/install.sh -c"
  554.     break
  555.   fi
  556. done
  557. if test -z "$ac_aux_dir"; then
  558.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  559. fi
  560. ac_config_guess=$ac_aux_dir/config.guess
  561. ac_config_sub=$ac_aux_dir/config.sub
  562. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  563.  
  564. # Find a good install program.  We prefer a C program (faster),
  565. # so one script is as good as another.  But avoid the broken or
  566. # incompatible versions:
  567. # SysV /etc/install, /usr/sbin/install
  568. # SunOS /usr/etc/install
  569. # IRIX /sbin/install
  570. # AIX /bin/install
  571. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  572. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  573. # ./install, which can be erroneously created by make from ./install.sh.
  574. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  575. if test -z "$INSTALL"; then
  576. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  577.   echo $ac_n "(cached) $ac_c" 1>&6
  578. else
  579.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  580.   for ac_dir in $PATH; do
  581.     # Account for people who put trailing slashes in PATH elements.
  582.     case "$ac_dir/" in
  583.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  584.     *)
  585.       # OSF1 and SCO ODT 3.0 have their own names for install.
  586.       for ac_prog in ginstall installbsd scoinst install; do
  587.         if test -f $ac_dir/$ac_prog; then
  588.       if test $ac_prog = install &&
  589.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  590.         # AIX install.  It has an incompatible calling convention.
  591.         # OSF/1 installbsd also uses dspmsg, but is usable.
  592.         :
  593.       else
  594.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  595.         break 2
  596.       fi
  597.     fi
  598.       done
  599.       ;;
  600.     esac
  601.   done
  602.   IFS="$ac_save_ifs"
  603.  
  604. fi
  605.   if test "${ac_cv_path_install+set}" = set; then
  606.     INSTALL="$ac_cv_path_install"
  607.   else
  608.     # As a last resort, use the slow shell script.  We don't cache a
  609.     # path for INSTALL within a source directory, because that will
  610.     # break other packages using the cache if that directory is
  611.     # removed, or if the path is relative.
  612.     INSTALL="$ac_install_sh"
  613.   fi
  614. fi
  615. echo "$ac_t""$INSTALL" 1>&6
  616.  
  617. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  618. # It thinks the first close brace ends the variable substitution.
  619. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  620.  
  621. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  622.  
  623. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL} -m 755'
  624.  
  625.  
  626. if test "$program_transform_name" = s,x,x,; then
  627.   program_transform_name=
  628. else
  629.   # Double any \ or $.  echo might interpret backslashes.
  630.   cat <<\EOF_SED > conftestsed
  631. s,\\,\\\\,g; s,\$,$$,g
  632. EOF_SED
  633.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  634.   rm -f conftestsed
  635. fi
  636. test "$program_prefix" != NONE &&
  637.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  638. # Use a double $ so make ignores it.
  639. test "$program_suffix" != NONE &&
  640.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  641.  
  642. # sed with no file args requires a program.
  643. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  644.  
  645. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  646. set dummy ${MAKE-make}; ac_make=$2
  647. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  648.   echo $ac_n "(cached) $ac_c" 1>&6
  649. else
  650.   cat > conftestmake <<\EOF
  651. all:
  652.     @echo 'ac_maketemp="${MAKE}"'
  653. EOF
  654. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  655. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  656. if test -n "$ac_maketemp"; then
  657.   eval ac_cv_prog_make_${ac_make}_set=yes
  658. else
  659.   eval ac_cv_prog_make_${ac_make}_set=no
  660. fi
  661. rm -f conftestmake
  662. fi
  663. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  664.   echo "$ac_t""yes" 1>&6
  665.   SET_MAKE=
  666. else
  667.   echo "$ac_t""no" 1>&6
  668.   SET_MAKE="MAKE=${MAKE-make}"
  669. fi
  670.  
  671.  
  672. # Check whether --with-cc or --without-cc was given.
  673. if test "${with_cc+set}" = set; then
  674.   withval="$with_cc"
  675.   if test "X$withval" != "Xno"; then
  676.     if test "X$withval" = "Xyes"; then
  677.       CC='cc'
  678.     else 
  679.       CC=$withval
  680.     fi
  681.     CFLAGS="$CFLAGS -I/usr/local/include"
  682.     LDFLAGS="$LDFLAGS -L/usr/local/lib"
  683.     echo "using compiler CC=$CC"
  684.   fi
  685.  
  686. fi
  687.  
  688.  
  689. if test "X$CC" = "X"; then
  690.   # Extract the first word of "gcc", so it can be a program name with args.
  691. set dummy gcc; ac_word=$2
  692. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  693. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  694.   echo $ac_n "(cached) $ac_c" 1>&6
  695. else
  696.   if test -n "$CC"; then
  697.   ac_cv_prog_CC="$CC" # Let the user override the test.
  698. else
  699.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  700.   for ac_dir in $PATH; do
  701.     test -z "$ac_dir" && ac_dir=.
  702.     if test -f $ac_dir/$ac_word; then
  703.       ac_cv_prog_CC="gcc"
  704.       break
  705.     fi
  706.   done
  707.   IFS="$ac_save_ifs"
  708. fi
  709. fi
  710. CC="$ac_cv_prog_CC"
  711. if test -n "$CC"; then
  712.   echo "$ac_t""$CC" 1>&6
  713. else
  714.   echo "$ac_t""no" 1>&6
  715. fi
  716.  
  717. if test -z "$CC"; then
  718.   # Extract the first word of "cc", so it can be a program name with args.
  719. set dummy cc; ac_word=$2
  720. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  721. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  722.   echo $ac_n "(cached) $ac_c" 1>&6
  723. else
  724.   if test -n "$CC"; then
  725.   ac_cv_prog_CC="$CC" # Let the user override the test.
  726. else
  727.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  728.   ac_prog_rejected=no
  729.   for ac_dir in $PATH; do
  730.     test -z "$ac_dir" && ac_dir=.
  731.     if test -f $ac_dir/$ac_word; then
  732.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  733.         ac_prog_rejected=yes
  734.     continue
  735.       fi
  736.       ac_cv_prog_CC="cc"
  737.       break
  738.     fi
  739.   done
  740.   IFS="$ac_save_ifs"
  741. if test $ac_prog_rejected = yes; then
  742.   # We found a bogon in the path, so make sure we never use it.
  743.   set dummy $ac_cv_prog_CC
  744.   shift
  745.   if test $# -gt 0; then
  746.     # We chose a different compiler from the bogus one.
  747.     # However, it has the same basename, so the bogon will be chosen
  748.     # first if we set CC to just the basename; use the full file name.
  749.     shift
  750.     set dummy "$ac_dir/$ac_word" "$@"
  751.     shift
  752.     ac_cv_prog_CC="$@"
  753.   fi
  754. fi
  755. fi
  756. fi
  757. CC="$ac_cv_prog_CC"
  758. if test -n "$CC"; then
  759.   echo "$ac_t""$CC" 1>&6
  760. else
  761.   echo "$ac_t""no" 1>&6
  762. fi
  763.  
  764.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  765. fi
  766.  
  767. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  768. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  769.   echo $ac_n "(cached) $ac_c" 1>&6
  770. else
  771.   cat > conftest.c <<EOF
  772. #ifdef __GNUC__
  773.   yes;
  774. #endif
  775. EOF
  776. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  777.   ac_cv_prog_gcc=yes
  778. else
  779.   ac_cv_prog_gcc=no
  780. fi
  781. fi
  782.  
  783. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  784. if test $ac_cv_prog_gcc = yes; then
  785.   GCC=yes
  786.   if test "${CFLAGS+set}" != set; then
  787.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  788. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  789.   echo $ac_n "(cached) $ac_c" 1>&6
  790. else
  791.   echo 'void f(){}' > conftest.c
  792. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  793.   ac_cv_prog_gcc_g=yes
  794. else
  795.   ac_cv_prog_gcc_g=no
  796. fi
  797. rm -f conftest*
  798.  
  799. fi
  800.  
  801. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  802.     if test $ac_cv_prog_gcc_g = yes; then
  803.       CFLAGS="-g -O"
  804.     else
  805.       CFLAGS="-O"
  806.     fi
  807.   fi
  808. else
  809.   GCC=
  810.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  811. fi
  812.  
  813. fi
  814.  
  815. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  816. if test -d /etc/conf/kconfig.d &&
  817.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  818. then
  819.   echo "$ac_t""yes" 1>&6
  820.   ISC=yes # If later tests want to check for ISC.
  821.   cat >> confdefs.h <<\EOF
  822. #define _POSIX_SOURCE 1
  823. EOF
  824.  
  825.   if test "$GCC" = yes; then
  826.     CC="$CC -posix"
  827.   else
  828.     CC="$CC -Xp"
  829.   fi
  830. else
  831.   echo "$ac_t""no" 1>&6
  832.   ISC=
  833. fi
  834.  
  835. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  836. if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  837.   echo $ac_n "(cached) $ac_c" 1>&6
  838. else
  839.   ac_cv_prog_cc_stdc=no
  840. ac_save_CFLAGS="$CFLAGS"
  841. # Don't try gcc -ansi; that turns off useful extensions and
  842. # breaks some systems' header files.
  843. # AIX            -qlanglvl=ansi
  844. # Ultrix and OSF/1    -std1
  845. # HP-UX            -Aa -D_HPUX_SOURCE
  846. # SVR4            -Xc
  847. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
  848. do
  849.   CFLAGS="$ac_save_CFLAGS $ac_arg"
  850.   cat > conftest.$ac_ext <<EOF
  851. #line 852 "configure"
  852. #include "confdefs.h"
  853. #if !defined(__STDC__) || __STDC__ != 1
  854. choke me
  855. #endif
  856.  
  857. int main() { return 0; }
  858. int t() {
  859. int test (int i, double x);
  860. struct s1 {int (*f) (int a);};
  861. struct s2 {int (*f) (double a);};
  862. ; return 0; }
  863. EOF
  864. if { (eval echo configure:865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  865.   rm -rf conftest*
  866.   ac_cv_prog_cc_stdc="$ac_arg"; break
  867. fi
  868. rm -f conftest*
  869.  
  870. done
  871. CFLAGS="$ac_save_CFLAGS"
  872.  
  873. fi
  874.  
  875. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  876. case "x$ac_cv_prog_cc_stdc" in
  877.   x|xno) ;;
  878.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  879. esac
  880.  
  881.  
  882. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  883. if test "$ac_cv_prog_cc_stdc" != no; then
  884.   echo "$ac_t""yes" 1>&6
  885.   cat >> confdefs.h <<\EOF
  886. #define PROTOTYPES 1
  887. EOF
  888.  
  889.   U= ANSI2KNR=
  890. else
  891.   echo "$ac_t""no" 1>&6
  892.   U=_ ANSI2KNR=./ansi2knr
  893. fi
  894.  
  895.  
  896. # Check whether --with-media or --without-media was given.
  897. if test "${with_media+set}" = set; then
  898.   withval="$with_media"
  899.   if test "X$withval" != "Xno"; then
  900.     if test "X$withval" = "Xyes"; then
  901.       ac_cv_value_media='Letter'
  902.     else
  903.       ac_cv_value_media=$withval
  904.     fi
  905.   else
  906.     ac_cv_value_media=${MEDIA-A4}
  907.   fi
  908. else
  909.   ac_cv_value_media=${MEDIA-A4}
  910.  
  911. fi
  912.  
  913. MEDIA=$ac_cv_value_media
  914.  
  915.  
  916. echo $ac_n "checking for working const""... $ac_c" 1>&6
  917. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  918.   echo $ac_n "(cached) $ac_c" 1>&6
  919. else
  920.   cat > conftest.$ac_ext <<EOF
  921. #line 922 "configure"
  922. #include "confdefs.h"
  923.  
  924. int main() { return 0; }
  925. int t() {
  926.  
  927. /* Ultrix mips cc rejects this.  */
  928. typedef int charset[2]; const charset x;
  929. /* SunOS 4.1.1 cc rejects this.  */
  930. char const *const *ccp;
  931. char **p;
  932. /* NEC SVR4.0.2 mips cc rejects this.  */
  933. struct point {int x, y;};
  934. static struct point const zero = {0,0};
  935. /* AIX XL C 1.02.0.0 rejects this.
  936.    It does not let you subtract one const X* pointer from another in an arm
  937.    of an if-expression whose if-part is not a constant expression */
  938. const char *g = "string";
  939. ccp = &g + (g ? g-g : 0);
  940. /* HPUX 7.0 cc rejects these. */
  941. ++ccp;
  942. p = (char**) ccp;
  943. ccp = (char const *const *) p;
  944. { /* SCO 3.2v4 cc rejects this.  */
  945.   char *t;
  946.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  947.  
  948.   *t++ = 0;
  949. }
  950. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  951.   int x[] = {25, 17};
  952.   const int *foo = &x[0];
  953.   ++foo;
  954. }
  955. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  956.   typedef const int *iptr;
  957.   iptr p = 0;
  958.   ++p;
  959. }
  960. { /* AIX XL C 1.02.0.0 rejects this saying
  961.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  962.   struct s { int j; const int *ap[3]; };
  963.   struct s *b; b->j = 5;
  964. }
  965. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  966.   const int foo = 10;
  967. }
  968.  
  969. ; return 0; }
  970. EOF
  971. if { (eval echo configure:972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  972.   rm -rf conftest*
  973.   ac_cv_c_const=yes
  974. else
  975.   rm -rf conftest*
  976.   ac_cv_c_const=no
  977. fi
  978. rm -f conftest*
  979.  
  980. fi
  981.  
  982. echo "$ac_t""$ac_cv_c_const" 1>&6
  983. if test $ac_cv_c_const = no; then
  984.   cat >> confdefs.h <<\EOF
  985. #define const 
  986. EOF
  987.  
  988. fi
  989.  
  990.  
  991. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  992. # On Suns, sometimes $CPP names a directory.
  993. if test -n "$CPP" && test -d "$CPP"; then
  994.   CPP=
  995. fi
  996. if test -z "$CPP"; then
  997. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  998.   echo $ac_n "(cached) $ac_c" 1>&6
  999. else
  1000.     # This must be in double quotes, not single quotes, because CPP may get
  1001.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1002.   CPP="${CC-cc} -E"
  1003.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1004.   # not just through cpp.
  1005.   cat > conftest.$ac_ext <<EOF
  1006. #line 1007 "configure"
  1007. #include "confdefs.h"
  1008. #include <assert.h>
  1009. Syntax Error
  1010. EOF
  1011. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1012. { (eval echo configure:1013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1013. ac_err=`grep -v '^ *+' conftest.out`
  1014. if test -z "$ac_err"; then
  1015.   :
  1016. else
  1017.   echo "$ac_err" >&5
  1018.   rm -rf conftest*
  1019.   CPP="${CC-cc} -E -traditional-cpp"
  1020.   cat > conftest.$ac_ext <<EOF
  1021. #line 1022 "configure"
  1022. #include "confdefs.h"
  1023. #include <assert.h>
  1024. Syntax Error
  1025. EOF
  1026. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1027. { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1028. ac_err=`grep -v '^ *+' conftest.out`
  1029. if test -z "$ac_err"; then
  1030.   :
  1031. else
  1032.   echo "$ac_err" >&5
  1033.   rm -rf conftest*
  1034.   CPP=/lib/cpp
  1035. fi
  1036. rm -f conftest*
  1037. fi
  1038. rm -f conftest*
  1039.   ac_cv_prog_CPP="$CPP"
  1040. fi
  1041.   CPP="$ac_cv_prog_CPP"
  1042. else
  1043.   ac_cv_prog_CPP="$CPP"
  1044. fi
  1045. echo "$ac_t""$CPP" 1>&6
  1046.  
  1047. # If we cannot run a trivial program, we must be cross compiling.
  1048. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1049. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1050.   echo $ac_n "(cached) $ac_c" 1>&6
  1051. else
  1052.   if test "$cross_compiling" = yes; then
  1053.   ac_cv_c_cross=yes
  1054. else
  1055. cat > conftest.$ac_ext <<EOF
  1056. #line 1057 "configure"
  1057. #include "confdefs.h"
  1058. main(){return(0);}
  1059. EOF
  1060. { (eval echo configure:1061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1061. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1062.   ac_cv_c_cross=no
  1063. else
  1064.   ac_cv_c_cross=yes
  1065. fi
  1066. fi
  1067. rm -fr conftest*
  1068. fi
  1069.  
  1070. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1071. cross_compiling=$ac_cv_c_cross
  1072.  
  1073. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1074. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1075.   echo $ac_n "(cached) $ac_c" 1>&6
  1076. else
  1077.   cat > conftest.$ac_ext <<EOF
  1078. #line 1079 "configure"
  1079. #include "confdefs.h"
  1080. #include <stdlib.h>
  1081. #include <stdarg.h>
  1082. #include <string.h>
  1083. #include <float.h>
  1084. EOF
  1085. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1086. { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1087. ac_err=`grep -v '^ *+' conftest.out`
  1088. if test -z "$ac_err"; then
  1089.   rm -rf conftest*
  1090.   ac_cv_header_stdc=yes
  1091. else
  1092.   echo "$ac_err" >&5
  1093.   rm -rf conftest*
  1094.   ac_cv_header_stdc=no
  1095. fi
  1096. rm -f conftest*
  1097.  
  1098. if test $ac_cv_header_stdc = yes; then
  1099.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1100. cat > conftest.$ac_ext <<EOF
  1101. #line 1102 "configure"
  1102. #include "confdefs.h"
  1103. #include <string.h>
  1104. EOF
  1105. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1106.   egrep "memchr" >/dev/null 2>&1; then
  1107.   :
  1108. else
  1109.   rm -rf conftest*
  1110.   ac_cv_header_stdc=no
  1111. fi
  1112. rm -f conftest*
  1113.  
  1114. fi
  1115.  
  1116. if test $ac_cv_header_stdc = yes; then
  1117.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1118. cat > conftest.$ac_ext <<EOF
  1119. #line 1120 "configure"
  1120. #include "confdefs.h"
  1121. #include <stdlib.h>
  1122. EOF
  1123. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1124.   egrep "free" >/dev/null 2>&1; then
  1125.   :
  1126. else
  1127.   rm -rf conftest*
  1128.   ac_cv_header_stdc=no
  1129. fi
  1130. rm -f conftest*
  1131.  
  1132. fi
  1133.  
  1134. if test $ac_cv_header_stdc = yes; then
  1135.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1136. if test "$cross_compiling" = yes; then
  1137.   :
  1138. else
  1139. cat > conftest.$ac_ext <<EOF
  1140. #line 1141 "configure"
  1141. #include "confdefs.h"
  1142. #include <ctype.h>
  1143. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1144. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1145. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1146. int main () { int i; for (i = 0; i < 256; i++)
  1147. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1148. exit (0); }
  1149.  
  1150. EOF
  1151. { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1152. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1153.   :
  1154. else
  1155.   ac_cv_header_stdc=no
  1156. fi
  1157. fi
  1158. rm -fr conftest*
  1159. fi
  1160. fi
  1161.  
  1162. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1163. if test $ac_cv_header_stdc = yes; then
  1164.   cat >> confdefs.h <<\EOF
  1165. #define STDC_HEADERS 1
  1166. EOF
  1167.  
  1168. fi
  1169.  
  1170. for ac_hdr in string.h stdlib.h unistd.h stdarg.h math.h pwd.h
  1171. do
  1172. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1173. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1174. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1175.   echo $ac_n "(cached) $ac_c" 1>&6
  1176. else
  1177.   cat > conftest.$ac_ext <<EOF
  1178. #line 1179 "configure"
  1179. #include "confdefs.h"
  1180. #include <$ac_hdr>
  1181. EOF
  1182. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1183. { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1184. ac_err=`grep -v '^ *+' conftest.out`
  1185. if test -z "$ac_err"; then
  1186.   rm -rf conftest*
  1187.   eval "ac_cv_header_$ac_safe=yes"
  1188. else
  1189.   echo "$ac_err" >&5
  1190.   rm -rf conftest*
  1191.   eval "ac_cv_header_$ac_safe=no"
  1192. fi
  1193. rm -f conftest*
  1194. fi
  1195. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1196.   echo "$ac_t""yes" 1>&6
  1197.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1198.   cat >> confdefs.h <<EOF
  1199. #define $ac_tr_hdr 1
  1200. EOF
  1201.  
  1202. else
  1203.   echo "$ac_t""no" 1>&6
  1204. fi
  1205. done
  1206.  
  1207.  
  1208. for ac_func in strchr memcpy
  1209. do
  1210. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1211. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1212.   echo $ac_n "(cached) $ac_c" 1>&6
  1213. else
  1214.   cat > conftest.$ac_ext <<EOF
  1215. #line 1216 "configure"
  1216. #include "confdefs.h"
  1217. /* System header to define __stub macros and hopefully few prototypes,
  1218.     which can conflict with char $ac_func(); below.  */
  1219. #include <assert.h>
  1220. /* Override any gcc2 internal prototype to avoid an error.  */
  1221. char $ac_func();
  1222.  
  1223. int main() { return 0; }
  1224. int t() {
  1225.  
  1226. /* The GNU C library defines this for functions which it implements
  1227.     to always fail with ENOSYS.  Some functions are actually named
  1228.     something starting with __ and the normal name is an alias.  */
  1229. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1230. choke me
  1231. #else
  1232. $ac_func();
  1233. #endif
  1234.  
  1235. ; return 0; }
  1236. EOF
  1237. if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1238.   rm -rf conftest*
  1239.   eval "ac_cv_func_$ac_func=yes"
  1240. else
  1241.   rm -rf conftest*
  1242.   eval "ac_cv_func_$ac_func=no"
  1243. fi
  1244. rm -f conftest*
  1245.  
  1246. fi
  1247. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1248.   echo "$ac_t""yes" 1>&6
  1249.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1250.   cat >> confdefs.h <<EOF
  1251. #define $ac_tr_func 1
  1252. EOF
  1253.  
  1254. else
  1255.   echo "$ac_t""no" 1>&6
  1256. fi
  1257. done
  1258.  
  1259. echo $ac_n "checking for strerror""... $ac_c" 1>&6
  1260. if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
  1261.   echo $ac_n "(cached) $ac_c" 1>&6
  1262. else
  1263.   cat > conftest.$ac_ext <<EOF
  1264. #line 1265 "configure"
  1265. #include "confdefs.h"
  1266. /* System header to define __stub macros and hopefully few prototypes,
  1267.     which can conflict with char strerror(); below.  */
  1268. #include <assert.h>
  1269. /* Override any gcc2 internal prototype to avoid an error.  */
  1270. char strerror();
  1271.  
  1272. int main() { return 0; }
  1273. int t() {
  1274.  
  1275. /* The GNU C library defines this for functions which it implements
  1276.     to always fail with ENOSYS.  Some functions are actually named
  1277.     something starting with __ and the normal name is an alias.  */
  1278. #if defined (__stub_strerror) || defined (__stub___strerror)
  1279. choke me
  1280. #else
  1281. strerror();
  1282. #endif
  1283.  
  1284. ; return 0; }
  1285. EOF
  1286. if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1287.   rm -rf conftest*
  1288.   eval "ac_cv_func_strerror=yes"
  1289. else
  1290.   rm -rf conftest*
  1291.   eval "ac_cv_func_strerror=no"
  1292. fi
  1293. rm -f conftest*
  1294.  
  1295. fi
  1296. if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
  1297.   echo "$ac_t""yes" 1>&6
  1298.   cat >> confdefs.h <<\EOF
  1299. #define HAVE_STRERROR 1
  1300. EOF
  1301.  
  1302. else
  1303.   echo "$ac_t""no" 1>&6
  1304.  
  1305.   LIBOBJS="$LIBOBJS strerror.o"
  1306.  
  1307. fi
  1308.  
  1309.  
  1310. echo $ac_n "checking for getcwd""... $ac_c" 1>&6
  1311. if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
  1312.   echo $ac_n "(cached) $ac_c" 1>&6
  1313. else
  1314.   cat > conftest.$ac_ext <<EOF
  1315. #line 1316 "configure"
  1316. #include "confdefs.h"
  1317. /* System header to define __stub macros and hopefully few prototypes,
  1318.     which can conflict with char getcwd(); below.  */
  1319. #include <assert.h>
  1320. /* Override any gcc2 internal prototype to avoid an error.  */
  1321. char getcwd();
  1322.  
  1323. int main() { return 0; }
  1324. int t() {
  1325.  
  1326. /* The GNU C library defines this for functions which it implements
  1327.     to always fail with ENOSYS.  Some functions are actually named
  1328.     something starting with __ and the normal name is an alias.  */
  1329. #if defined (__stub_getcwd) || defined (__stub___getcwd)
  1330. choke me
  1331. #else
  1332. getcwd();
  1333. #endif
  1334.  
  1335. ; return 0; }
  1336. EOF
  1337. if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1338.   rm -rf conftest*
  1339.   eval "ac_cv_func_getcwd=yes"
  1340. else
  1341.   rm -rf conftest*
  1342.   eval "ac_cv_func_getcwd=no"
  1343. fi
  1344. rm -f conftest*
  1345.  
  1346. fi
  1347. if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
  1348.   echo "$ac_t""yes" 1>&6
  1349.   cat >> confdefs.h <<\EOF
  1350. #define HAVE_GETCWD 1
  1351. EOF
  1352.  
  1353. else
  1354.   echo "$ac_t""no" 1>&6
  1355.  
  1356.   echo $ac_n "checking for getwd""... $ac_c" 1>&6
  1357. if eval "test \"`echo '$''{'ac_cv_func_getwd'+set}'`\" = set"; then
  1358.   echo $ac_n "(cached) $ac_c" 1>&6
  1359. else
  1360.   cat > conftest.$ac_ext <<EOF
  1361. #line 1362 "configure"
  1362. #include "confdefs.h"
  1363. /* System header to define __stub macros and hopefully few prototypes,
  1364.     which can conflict with char getwd(); below.  */
  1365. #include <assert.h>
  1366. /* Override any gcc2 internal prototype to avoid an error.  */
  1367. char getwd();
  1368.  
  1369. int main() { return 0; }
  1370. int t() {
  1371.  
  1372. /* The GNU C library defines this for functions which it implements
  1373.     to always fail with ENOSYS.  Some functions are actually named
  1374.     something starting with __ and the normal name is an alias.  */
  1375. #if defined (__stub_getwd) || defined (__stub___getwd)
  1376. choke me
  1377. #else
  1378. getwd();
  1379. #endif
  1380.  
  1381. ; return 0; }
  1382. EOF
  1383. if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1384.   rm -rf conftest*
  1385.   eval "ac_cv_func_getwd=yes"
  1386. else
  1387.   rm -rf conftest*
  1388.   eval "ac_cv_func_getwd=no"
  1389. fi
  1390. rm -f conftest*
  1391.  
  1392. fi
  1393. if eval "test \"`echo '$ac_cv_func_'getwd`\" = yes"; then
  1394.   echo "$ac_t""yes" 1>&6
  1395.   cat >> confdefs.h <<\EOF
  1396. #define HAVE_GETWD 1
  1397. EOF
  1398.  
  1399. else
  1400.   echo "$ac_t""no" 1>&6
  1401. fi
  1402.  
  1403.  
  1404. fi
  1405.  
  1406.  
  1407. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1408. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1409.   echo $ac_n "(cached) $ac_c" 1>&6
  1410. else
  1411.   cat > conftest.$ac_ext <<EOF
  1412. #line 1413 "configure"
  1413. #include "confdefs.h"
  1414. /* System header to define __stub macros and hopefully few prototypes,
  1415.     which can conflict with char vprintf(); below.  */
  1416. #include <assert.h>
  1417. /* Override any gcc2 internal prototype to avoid an error.  */
  1418. char vprintf();
  1419.  
  1420. int main() { return 0; }
  1421. int t() {
  1422.  
  1423. /* The GNU C library defines this for functions which it implements
  1424.     to always fail with ENOSYS.  Some functions are actually named
  1425.     something starting with __ and the normal name is an alias.  */
  1426. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1427. choke me
  1428. #else
  1429. vprintf();
  1430. #endif
  1431.  
  1432. ; return 0; }
  1433. EOF
  1434. if { (eval echo configure:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1435.   rm -rf conftest*
  1436.   eval "ac_cv_func_vprintf=yes"
  1437. else
  1438.   rm -rf conftest*
  1439.   eval "ac_cv_func_vprintf=no"
  1440. fi
  1441. rm -f conftest*
  1442.  
  1443. fi
  1444. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1445.   echo "$ac_t""yes" 1>&6
  1446.   cat >> confdefs.h <<\EOF
  1447. #define HAVE_VPRINTF 1
  1448. EOF
  1449.  
  1450. else
  1451.   echo "$ac_t""no" 1>&6
  1452. fi
  1453.  
  1454. if test "$ac_cv_func_vprintf" != yes; then
  1455. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1456. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1457.   echo $ac_n "(cached) $ac_c" 1>&6
  1458. else
  1459.   cat > conftest.$ac_ext <<EOF
  1460. #line 1461 "configure"
  1461. #include "confdefs.h"
  1462. /* System header to define __stub macros and hopefully few prototypes,
  1463.     which can conflict with char _doprnt(); below.  */
  1464. #include <assert.h>
  1465. /* Override any gcc2 internal prototype to avoid an error.  */
  1466. char _doprnt();
  1467.  
  1468. int main() { return 0; }
  1469. int t() {
  1470.  
  1471. /* The GNU C library defines this for functions which it implements
  1472.     to always fail with ENOSYS.  Some functions are actually named
  1473.     something starting with __ and the normal name is an alias.  */
  1474. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  1475. choke me
  1476. #else
  1477. _doprnt();
  1478. #endif
  1479.  
  1480. ; return 0; }
  1481. EOF
  1482. if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1483.   rm -rf conftest*
  1484.   eval "ac_cv_func__doprnt=yes"
  1485. else
  1486.   rm -rf conftest*
  1487.   eval "ac_cv_func__doprnt=no"
  1488. fi
  1489. rm -f conftest*
  1490.  
  1491. fi
  1492. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1493.   echo "$ac_t""yes" 1>&6
  1494.   cat >> confdefs.h <<\EOF
  1495. #define HAVE_DOPRNT 1
  1496. EOF
  1497.  
  1498. else
  1499.   echo "$ac_t""no" 1>&6
  1500. fi
  1501.  
  1502. fi
  1503.  
  1504.  
  1505. echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  1506. ac_lib_var=`echo sun_main | tr '.-/+' '___p'`
  1507. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1508.   echo $ac_n "(cached) $ac_c" 1>&6
  1509. else
  1510.   ac_save_LIBS="$LIBS"
  1511. LIBS="-lsun  $LIBS"
  1512. cat > conftest.$ac_ext <<EOF
  1513. #line 1514 "configure"
  1514. #include "confdefs.h"
  1515.  
  1516. int main() { return 0; }
  1517. int t() {
  1518. main()
  1519. ; return 0; }
  1520. EOF
  1521. if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1522.   rm -rf conftest*
  1523.   eval "ac_cv_lib_$ac_lib_var=yes"
  1524. else
  1525.   rm -rf conftest*
  1526.   eval "ac_cv_lib_$ac_lib_var=no"
  1527. fi
  1528. rm -f conftest*
  1529. LIBS="$ac_save_LIBS"
  1530.  
  1531. fi
  1532. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1533.   echo "$ac_t""yes" 1>&6
  1534.     ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1535.   cat >> confdefs.h <<EOF
  1536. #define $ac_tr_lib 1
  1537. EOF
  1538.  
  1539.   LIBS="-lsun $LIBS"
  1540.  
  1541. else
  1542.   echo "$ac_t""no" 1>&6
  1543. fi
  1544.  
  1545.  
  1546. echo $ac_n "checking for gethostname""... $ac_c" 1>&6
  1547. if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
  1548.   echo $ac_n "(cached) $ac_c" 1>&6
  1549. else
  1550.   cat > conftest.$ac_ext <<EOF
  1551. #line 1552 "configure"
  1552. #include "confdefs.h"
  1553. /* System header to define __stub macros and hopefully few prototypes,
  1554.     which can conflict with char gethostname(); below.  */
  1555. #include <assert.h>
  1556. /* Override any gcc2 internal prototype to avoid an error.  */
  1557. char gethostname();
  1558.  
  1559. int main() { return 0; }
  1560. int t() {
  1561.  
  1562. /* The GNU C library defines this for functions which it implements
  1563.     to always fail with ENOSYS.  Some functions are actually named
  1564.     something starting with __ and the normal name is an alias.  */
  1565. #if defined (__stub_gethostname) || defined (__stub___gethostname)
  1566. choke me
  1567. #else
  1568. gethostname();
  1569. #endif
  1570.  
  1571. ; return 0; }
  1572. EOF
  1573. if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1574.   rm -rf conftest*
  1575.   eval "ac_cv_func_gethostname=yes"
  1576. else
  1577.   rm -rf conftest*
  1578.   eval "ac_cv_func_gethostname=no"
  1579. fi
  1580. rm -f conftest*
  1581.  
  1582. fi
  1583. if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
  1584.   echo "$ac_t""yes" 1>&6
  1585.   :
  1586. else
  1587.   echo "$ac_t""no" 1>&6
  1588. echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  1589. ac_lib_var=`echo nsl_main | tr '.-/+' '___p'`
  1590. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1591.   echo $ac_n "(cached) $ac_c" 1>&6
  1592. else
  1593.   ac_save_LIBS="$LIBS"
  1594. LIBS="-lnsl  $LIBS"
  1595. cat > conftest.$ac_ext <<EOF
  1596. #line 1597 "configure"
  1597. #include "confdefs.h"
  1598.  
  1599. int main() { return 0; }
  1600. int t() {
  1601. main()
  1602. ; return 0; }
  1603. EOF
  1604. if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1605.   rm -rf conftest*
  1606.   eval "ac_cv_lib_$ac_lib_var=yes"
  1607. else
  1608.   rm -rf conftest*
  1609.   eval "ac_cv_lib_$ac_lib_var=no"
  1610. fi
  1611. rm -f conftest*
  1612. LIBS="$ac_save_LIBS"
  1613.  
  1614. fi
  1615. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1616.   echo "$ac_t""yes" 1>&6
  1617.     ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1618.   cat >> confdefs.h <<EOF
  1619. #define $ac_tr_lib 1
  1620. EOF
  1621.  
  1622.   LIBS="-lnsl $LIBS"
  1623.  
  1624. else
  1625.   echo "$ac_t""no" 1>&6
  1626. fi
  1627.  
  1628. fi
  1629.  
  1630.  
  1631. # Extract the first word of "ranlib", so it can be a program name with args.
  1632. set dummy ranlib; ac_word=$2
  1633. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1634. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1635.   echo $ac_n "(cached) $ac_c" 1>&6
  1636. else
  1637.   if test -n "$RANLIB"; then
  1638.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1639. else
  1640.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1641.   for ac_dir in $PATH; do
  1642.     test -z "$ac_dir" && ac_dir=.
  1643.     if test -f $ac_dir/$ac_word; then
  1644.       ac_cv_prog_RANLIB="ranlib"
  1645.       break
  1646.     fi
  1647.   done
  1648.   IFS="$ac_save_ifs"
  1649.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1650. fi
  1651. fi
  1652. RANLIB="$ac_cv_prog_RANLIB"
  1653. if test -n "$RANLIB"; then
  1654.   echo "$ac_t""$RANLIB" 1>&6
  1655. else
  1656.   echo "$ac_t""no" 1>&6
  1657. fi
  1658.  
  1659.  
  1660. # Check whether --enable-debug or --disable-debug was given.
  1661. if test "${enable_debug+set}" = set; then
  1662.   enableval="$enable_debug"
  1663.   
  1664.   echo enable debugging
  1665.   if test -n "$GCC"; then
  1666.     CFLAGS="$CFLAGS -Wall"
  1667.   fi
  1668.  
  1669. fi
  1670.  
  1671.  
  1672.  
  1673. ALL_LINGUAS="de fi fr sl"
  1674. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1675. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1676.   echo $ac_n "(cached) $ac_c" 1>&6
  1677. else
  1678.   ac_cv_c_inline=no
  1679. for ac_kw in inline __inline__ __inline; do
  1680.   cat > conftest.$ac_ext <<EOF
  1681. #line 1682 "configure"
  1682. #include "confdefs.h"
  1683.  
  1684. int main() { return 0; }
  1685. int t() {
  1686. } $ac_kw foo() {
  1687. ; return 0; }
  1688. EOF
  1689. if { (eval echo configure:1690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1690.   rm -rf conftest*
  1691.   ac_cv_c_inline=$ac_kw; break
  1692. fi
  1693. rm -f conftest*
  1694.  
  1695. done
  1696.  
  1697. fi
  1698.  
  1699. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1700. case "$ac_cv_c_inline" in
  1701.   inline | yes) ;;
  1702.   no) cat >> confdefs.h <<\EOF
  1703. #define inline 
  1704. EOF
  1705.  ;;
  1706.   *)  cat >> confdefs.h <<EOF
  1707. #define inline $ac_cv_c_inline
  1708. EOF
  1709.  ;;
  1710. esac
  1711.  
  1712. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1713. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1714.   echo $ac_n "(cached) $ac_c" 1>&6
  1715. else
  1716.   cat > conftest.$ac_ext <<EOF
  1717. #line 1718 "configure"
  1718. #include "confdefs.h"
  1719. #include <sys/types.h>
  1720. #if STDC_HEADERS
  1721. #include <stdlib.h>
  1722. #endif
  1723. EOF
  1724. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1725.   egrep "off_t" >/dev/null 2>&1; then
  1726.   rm -rf conftest*
  1727.   ac_cv_type_off_t=yes
  1728. else
  1729.   rm -rf conftest*
  1730.   ac_cv_type_off_t=no
  1731. fi
  1732. rm -f conftest*
  1733.  
  1734. fi
  1735. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1736. if test $ac_cv_type_off_t = no; then
  1737.   cat >> confdefs.h <<\EOF
  1738. #define off_t long
  1739. EOF
  1740.  
  1741. fi
  1742.  
  1743. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1744. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1745.   echo $ac_n "(cached) $ac_c" 1>&6
  1746. else
  1747.   cat > conftest.$ac_ext <<EOF
  1748. #line 1749 "configure"
  1749. #include "confdefs.h"
  1750. #include <sys/types.h>
  1751. #if STDC_HEADERS
  1752. #include <stdlib.h>
  1753. #endif
  1754. EOF
  1755. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1756.   egrep "size_t" >/dev/null 2>&1; then
  1757.   rm -rf conftest*
  1758.   ac_cv_type_size_t=yes
  1759. else
  1760.   rm -rf conftest*
  1761.   ac_cv_type_size_t=no
  1762. fi
  1763. rm -f conftest*
  1764.  
  1765. fi
  1766. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1767. if test $ac_cv_type_size_t = no; then
  1768.   cat >> confdefs.h <<\EOF
  1769. #define size_t unsigned
  1770. EOF
  1771.  
  1772. fi
  1773.  
  1774. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1775. # for constant arguments.  Useless!
  1776. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1777. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1778.   echo $ac_n "(cached) $ac_c" 1>&6
  1779. else
  1780.   cat > conftest.$ac_ext <<EOF
  1781. #line 1782 "configure"
  1782. #include "confdefs.h"
  1783. #include <alloca.h>
  1784. int main() { return 0; }
  1785. int t() {
  1786. char *p = alloca(2 * sizeof(int));
  1787. ; return 0; }
  1788. EOF
  1789. if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1790.   rm -rf conftest*
  1791.   ac_cv_header_alloca_h=yes
  1792. else
  1793.   rm -rf conftest*
  1794.   ac_cv_header_alloca_h=no
  1795. fi
  1796. rm -f conftest*
  1797.  
  1798. fi
  1799.  
  1800. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1801. if test $ac_cv_header_alloca_h = yes; then
  1802.   cat >> confdefs.h <<\EOF
  1803. #define HAVE_ALLOCA_H 1
  1804. EOF
  1805.  
  1806. fi
  1807.  
  1808. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1809. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1810.   echo $ac_n "(cached) $ac_c" 1>&6
  1811. else
  1812.   cat > conftest.$ac_ext <<EOF
  1813. #line 1814 "configure"
  1814. #include "confdefs.h"
  1815.  
  1816. #ifdef __GNUC__
  1817. # define alloca __builtin_alloca
  1818. #else
  1819. # if HAVE_ALLOCA_H
  1820. #  include <alloca.h>
  1821. # else
  1822. #  ifdef _AIX
  1823.  #pragma alloca
  1824. #  else
  1825. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1826. char *alloca ();
  1827. #   endif
  1828. #  endif
  1829. # endif
  1830. #endif
  1831.  
  1832. int main() { return 0; }
  1833. int t() {
  1834. char *p = (char *) alloca(1);
  1835. ; return 0; }
  1836. EOF
  1837. if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1838.   rm -rf conftest*
  1839.   ac_cv_func_alloca=yes
  1840. else
  1841.   rm -rf conftest*
  1842.   ac_cv_func_alloca=no
  1843. fi
  1844. rm -f conftest*
  1845.  
  1846. fi
  1847.  
  1848. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1849. if test $ac_cv_func_alloca = yes; then
  1850.   cat >> confdefs.h <<\EOF
  1851. #define HAVE_ALLOCA 1
  1852. EOF
  1853.  
  1854. fi
  1855.  
  1856. if test $ac_cv_func_alloca = no; then
  1857.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1858.   # that cause trouble.  Some versions do not even contain alloca or
  1859.   # contain a buggy version.  If you still want to use their alloca,
  1860.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1861.   ALLOCA=alloca.o
  1862.   cat >> confdefs.h <<\EOF
  1863. #define C_ALLOCA 1
  1864. EOF
  1865.  
  1866.  
  1867. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1868. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1869.   echo $ac_n "(cached) $ac_c" 1>&6
  1870. else
  1871.   cat > conftest.$ac_ext <<EOF
  1872. #line 1873 "configure"
  1873. #include "confdefs.h"
  1874. #if defined(CRAY) && ! defined(CRAY2)
  1875. webecray
  1876. #else
  1877. wenotbecray
  1878. #endif
  1879.  
  1880. EOF
  1881. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1882.   egrep "webecray" >/dev/null 2>&1; then
  1883.   rm -rf conftest*
  1884.   ac_cv_os_cray=yes
  1885. else
  1886.   rm -rf conftest*
  1887.   ac_cv_os_cray=no
  1888. fi
  1889. rm -f conftest*
  1890.  
  1891. fi
  1892.  
  1893. echo "$ac_t""$ac_cv_os_cray" 1>&6
  1894. if test $ac_cv_os_cray = yes; then
  1895. for ac_func in _getb67 GETB67 getb67; do
  1896.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1897. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1898.   echo $ac_n "(cached) $ac_c" 1>&6
  1899. else
  1900.   cat > conftest.$ac_ext <<EOF
  1901. #line 1902 "configure"
  1902. #include "confdefs.h"
  1903. /* System header to define __stub macros and hopefully few prototypes,
  1904.     which can conflict with char $ac_func(); below.  */
  1905. #include <assert.h>
  1906. /* Override any gcc2 internal prototype to avoid an error.  */
  1907. char $ac_func();
  1908.  
  1909. int main() { return 0; }
  1910. int t() {
  1911.  
  1912. /* The GNU C library defines this for functions which it implements
  1913.     to always fail with ENOSYS.  Some functions are actually named
  1914.     something starting with __ and the normal name is an alias.  */
  1915. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1916. choke me
  1917. #else
  1918. $ac_func();
  1919. #endif
  1920.  
  1921. ; return 0; }
  1922. EOF
  1923. if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1924.   rm -rf conftest*
  1925.   eval "ac_cv_func_$ac_func=yes"
  1926. else
  1927.   rm -rf conftest*
  1928.   eval "ac_cv_func_$ac_func=no"
  1929. fi
  1930. rm -f conftest*
  1931.  
  1932. fi
  1933. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1934.   echo "$ac_t""yes" 1>&6
  1935.   cat >> confdefs.h <<EOF
  1936. #define CRAY_STACKSEG_END $ac_func
  1937. EOF
  1938.  
  1939.   break
  1940. else
  1941.   echo "$ac_t""no" 1>&6
  1942. fi
  1943.  
  1944. done
  1945. fi
  1946.  
  1947. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1948. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1949.   echo $ac_n "(cached) $ac_c" 1>&6
  1950. else
  1951.   if test "$cross_compiling" = yes; then
  1952.   ac_cv_c_stack_direction=0
  1953. else
  1954. cat > conftest.$ac_ext <<EOF
  1955. #line 1956 "configure"
  1956. #include "confdefs.h"
  1957. find_stack_direction ()
  1958. {
  1959.   static char *addr = 0;
  1960.   auto char dummy;
  1961.   if (addr == 0)
  1962.     {
  1963.       addr = &dummy;
  1964.       return find_stack_direction ();
  1965.     }
  1966.   else
  1967.     return (&dummy > addr) ? 1 : -1;
  1968. }
  1969. main ()
  1970. {
  1971.   exit (find_stack_direction() < 0);
  1972. }
  1973. EOF
  1974. { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1975. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1976.   ac_cv_c_stack_direction=1
  1977. else
  1978.   ac_cv_c_stack_direction=-1
  1979. fi
  1980. fi
  1981. rm -fr conftest*
  1982. fi
  1983.  
  1984. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1985. cat >> confdefs.h <<EOF
  1986. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1987. EOF
  1988.  
  1989. fi
  1990.  
  1991. for ac_func in valloc getpagesize
  1992. do
  1993. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1994. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1995.   echo $ac_n "(cached) $ac_c" 1>&6
  1996. else
  1997.   cat > conftest.$ac_ext <<EOF
  1998. #line 1999 "configure"
  1999. #include "confdefs.h"
  2000. /* System header to define __stub macros and hopefully few prototypes,
  2001.     which can conflict with char $ac_func(); below.  */
  2002. #include <assert.h>
  2003. /* Override any gcc2 internal prototype to avoid an error.  */
  2004. char $ac_func();
  2005.  
  2006. int main() { return 0; }
  2007. int t() {
  2008.  
  2009. /* The GNU C library defines this for functions which it implements
  2010.     to always fail with ENOSYS.  Some functions are actually named
  2011.     something starting with __ and the normal name is an alias.  */
  2012. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2013. choke me
  2014. #else
  2015. $ac_func();
  2016. #endif
  2017.  
  2018. ; return 0; }
  2019. EOF
  2020. if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2021.   rm -rf conftest*
  2022.   eval "ac_cv_func_$ac_func=yes"
  2023. else
  2024.   rm -rf conftest*
  2025.   eval "ac_cv_func_$ac_func=no"
  2026. fi
  2027. rm -f conftest*
  2028.  
  2029. fi
  2030. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2031.   echo "$ac_t""yes" 1>&6
  2032.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2033.   cat >> confdefs.h <<EOF
  2034. #define $ac_tr_func 1
  2035. EOF
  2036.  
  2037. else
  2038.   echo "$ac_t""no" 1>&6
  2039. fi
  2040. done
  2041.  
  2042. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  2043. if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
  2044.   echo $ac_n "(cached) $ac_c" 1>&6
  2045. else
  2046.   if test "$cross_compiling" = yes; then
  2047.   ac_cv_func_mmap=no
  2048. else
  2049. cat > conftest.$ac_ext <<EOF
  2050. #line 2051 "configure"
  2051. #include "confdefs.h"
  2052.  
  2053. /* Thanks to Mike Haertel and Jim Avera for this test. */
  2054. #include <sys/types.h>
  2055. #include <fcntl.h>
  2056. #include <sys/mman.h>
  2057.  
  2058. #ifndef HAVE_GETPAGESIZE
  2059. # include <sys/param.h>
  2060. # ifdef EXEC_PAGESIZE
  2061. #  define getpagesize() EXEC_PAGESIZE
  2062. # else
  2063. #  ifdef NBPG
  2064. #   define getpagesize() NBPG * CLSIZE
  2065. #   ifndef CLSIZE
  2066. #    define CLSIZE 1
  2067. #   endif
  2068. #  else
  2069. #   ifdef NBPC
  2070. #    define getpagesize() NBPC
  2071. #   else
  2072. #    define getpagesize() PAGESIZE /* SVR4 */
  2073. #   endif
  2074. #  endif
  2075. # endif
  2076. #endif
  2077.  
  2078. #ifndef HAVE_VALLOC
  2079. # define valloc malloc
  2080. #endif
  2081.  
  2082. #ifdef __cplusplus
  2083. extern "C" { void *valloc(unsigned), *malloc(unsigned); }
  2084. #else
  2085. char *valloc(), *malloc();
  2086. #endif
  2087.  
  2088. int
  2089. main()
  2090. {
  2091.   char *buf1, *buf2, *buf3;
  2092.   int i = getpagesize(), j;
  2093.   int i2 = i * 2;
  2094.   int fd;
  2095.  
  2096.   buf1 = (char *)valloc(i2);
  2097.   buf2 = (char *)valloc(i);
  2098.   buf3 = (char *)malloc(i2);
  2099.   for (j = 0; j < i2; ++j)
  2100.     *(buf1 + j) = rand();
  2101.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  2102.   write(fd, buf1, i2);
  2103.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  2104.   for (j = 0; j < i; ++j)
  2105.     if (*(buf1 + j) != *(buf2 + j))
  2106.       exit(1);
  2107.   lseek(fd, (long)i, 0);
  2108.   read(fd, buf2, i); /* read into mapped memory -- file should not change */
  2109.   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
  2110.   lseek(fd, (long)0, 0);
  2111.   read(fd, buf3, i2);
  2112.   for (j = 0; j < i2; ++j)
  2113.     if (*(buf1 + j) != *(buf3 + j))
  2114.       exit(1);
  2115.   exit(0);
  2116. }
  2117.  
  2118. EOF
  2119. { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2120. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2121.   ac_cv_func_mmap=yes
  2122. else
  2123.   ac_cv_func_mmap=no
  2124. fi
  2125. fi
  2126. rm -fr conftest*
  2127. fi
  2128.  
  2129. echo "$ac_t""$ac_cv_func_mmap" 1>&6
  2130. if test $ac_cv_func_mmap = yes; then
  2131.   cat >> confdefs.h <<\EOF
  2132. #define HAVE_MMAP 1
  2133. EOF
  2134.  
  2135. fi
  2136.  
  2137.                               
  2138.    for ac_hdr in limits.h locale.h nl_types.h malloc.h string.h unistd.h values.h
  2139. do
  2140. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2141. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2142. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2143.   echo $ac_n "(cached) $ac_c" 1>&6
  2144. else
  2145.   cat > conftest.$ac_ext <<EOF
  2146. #line 2147 "configure"
  2147. #include "confdefs.h"
  2148. #include <$ac_hdr>
  2149. EOF
  2150. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2151. { (eval echo configure:2152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2152. ac_err=`grep -v '^ *+' conftest.out`
  2153. if test -z "$ac_err"; then
  2154.   rm -rf conftest*
  2155.   eval "ac_cv_header_$ac_safe=yes"
  2156. else
  2157.   echo "$ac_err" >&5
  2158.   rm -rf conftest*
  2159.   eval "ac_cv_header_$ac_safe=no"
  2160. fi
  2161. rm -f conftest*
  2162. fi
  2163. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2164.   echo "$ac_t""yes" 1>&6
  2165.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2166.   cat >> confdefs.h <<EOF
  2167. #define $ac_tr_hdr 1
  2168. EOF
  2169.  
  2170. else
  2171.   echo "$ac_t""no" 1>&6
  2172. fi
  2173. done
  2174.  
  2175.    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  2176. __argz_count __argz_stringify __argz_next
  2177. do
  2178. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2179. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2180.   echo $ac_n "(cached) $ac_c" 1>&6
  2181. else
  2182.   cat > conftest.$ac_ext <<EOF
  2183. #line 2184 "configure"
  2184. #include "confdefs.h"
  2185. /* System header to define __stub macros and hopefully few prototypes,
  2186.     which can conflict with char $ac_func(); below.  */
  2187. #include <assert.h>
  2188. /* Override any gcc2 internal prototype to avoid an error.  */
  2189. char $ac_func();
  2190.  
  2191. int main() { return 0; }
  2192. int t() {
  2193.  
  2194. /* The GNU C library defines this for functions which it implements
  2195.     to always fail with ENOSYS.  Some functions are actually named
  2196.     something starting with __ and the normal name is an alias.  */
  2197. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2198. choke me
  2199. #else
  2200. $ac_func();
  2201. #endif
  2202.  
  2203. ; return 0; }
  2204. EOF
  2205. if { (eval echo configure:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2206.   rm -rf conftest*
  2207.   eval "ac_cv_func_$ac_func=yes"
  2208. else
  2209.   rm -rf conftest*
  2210.   eval "ac_cv_func_$ac_func=no"
  2211. fi
  2212. rm -f conftest*
  2213.  
  2214. fi
  2215. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2216.   echo "$ac_t""yes" 1>&6
  2217.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2218.   cat >> confdefs.h <<EOF
  2219. #define $ac_tr_func 1
  2220. EOF
  2221.  
  2222. else
  2223.   echo "$ac_t""no" 1>&6
  2224. fi
  2225. done
  2226.  
  2227.  
  2228.    if test "${ac_cv_func_stpcpy+set}" != "set"; then
  2229.      for ac_func in stpcpy
  2230. do
  2231. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2232. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2233.   echo $ac_n "(cached) $ac_c" 1>&6
  2234. else
  2235.   cat > conftest.$ac_ext <<EOF
  2236. #line 2237 "configure"
  2237. #include "confdefs.h"
  2238. /* System header to define __stub macros and hopefully few prototypes,
  2239.     which can conflict with char $ac_func(); below.  */
  2240. #include <assert.h>
  2241. /* Override any gcc2 internal prototype to avoid an error.  */
  2242. char $ac_func();
  2243.  
  2244. int main() { return 0; }
  2245. int t() {
  2246.  
  2247. /* The GNU C library defines this for functions which it implements
  2248.     to always fail with ENOSYS.  Some functions are actually named
  2249.     something starting with __ and the normal name is an alias.  */
  2250. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2251. choke me
  2252. #else
  2253. $ac_func();
  2254. #endif
  2255.  
  2256. ; return 0; }
  2257. EOF
  2258. if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2259.   rm -rf conftest*
  2260.   eval "ac_cv_func_$ac_func=yes"
  2261. else
  2262.   rm -rf conftest*
  2263.   eval "ac_cv_func_$ac_func=no"
  2264. fi
  2265. rm -f conftest*
  2266.  
  2267. fi
  2268. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2269.   echo "$ac_t""yes" 1>&6
  2270.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2271.   cat >> confdefs.h <<EOF
  2272. #define $ac_tr_func 1
  2273. EOF
  2274.  
  2275. else
  2276.   echo "$ac_t""no" 1>&6
  2277. fi
  2278. done
  2279.  
  2280.    fi
  2281.    if test "${ac_cv_func_stpcpy}" = "yes"; then
  2282.      cat >> confdefs.h <<\EOF
  2283. #define HAVE_STPCPY 1
  2284. EOF
  2285.  
  2286.    fi
  2287.  
  2288.    if test $ac_cv_header_locale_h = yes; then
  2289.     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  2290. if eval "test \"`echo '$''{'ud_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  2291.   echo $ac_n "(cached) $ac_c" 1>&6
  2292. else
  2293.   cat > conftest.$ac_ext <<EOF
  2294. #line 2295 "configure"
  2295. #include "confdefs.h"
  2296. #include <locale.h>
  2297. int main() { return 0; }
  2298. int t() {
  2299. return LC_MESSAGES
  2300. ; return 0; }
  2301. EOF
  2302. if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2303.   rm -rf conftest*
  2304.   ud_cv_val_LC_MESSAGES=yes
  2305. else
  2306.   rm -rf conftest*
  2307.   ud_cv_val_LC_MESSAGES=no
  2308. fi
  2309. rm -f conftest*
  2310.  
  2311. fi
  2312.  
  2313. echo "$ac_t""$ud_cv_val_LC_MESSAGES" 1>&6
  2314.     if test $ud_cv_val_LC_MESSAGES = yes; then
  2315.       cat >> confdefs.h <<\EOF
  2316. #define HAVE_LC_MESSAGES 1
  2317. EOF
  2318.  
  2319.     fi
  2320.   fi
  2321.    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  2322.         # Check whether --enable-nls or --disable-nls was given.
  2323. if test "${enable_nls+set}" = set; then
  2324.   enableval="$enable_nls"
  2325.   USE_NLS=$enableval
  2326. else
  2327.   USE_NLS=yes
  2328. fi
  2329.  
  2330.     echo "$ac_t""$USE_NLS" 1>&6
  2331.     
  2332.  
  2333.     USE_INCLUDED_LIBINTL=no
  2334.  
  2335.         if test "$USE_NLS" = "yes"; then
  2336.       cat >> confdefs.h <<\EOF
  2337. #define ENABLE_NLS 1
  2338. EOF
  2339.  
  2340.       echo $ac_n "checking for explicitly using GNU gettext""... $ac_c" 1>&6
  2341.       # Check whether --with-included-gettext or --without-included-gettext was given.
  2342. if test "${with_included_gettext+set}" = set; then
  2343.   withval="$with_included_gettext"
  2344.   nls_cv_force_use_gnu_gettext=$withval
  2345. else
  2346.   nls_cv_force_use_gnu_gettext=no
  2347. fi
  2348.  
  2349.       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
  2350.  
  2351.       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  2352.       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  2353.                                 nls_cv_header_intl=
  2354.     nls_cv_header_libgt=
  2355.     CATOBJEXT=NONE
  2356.  
  2357.     ac_safe=`echo "libintl.h" | tr './\055' '___'`
  2358. echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
  2359. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2360.   echo $ac_n "(cached) $ac_c" 1>&6
  2361. else
  2362.   cat > conftest.$ac_ext <<EOF
  2363. #line 2364 "configure"
  2364. #include "confdefs.h"
  2365. #include <libintl.h>
  2366. EOF
  2367. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2368. { (eval echo configure:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2369. ac_err=`grep -v '^ *+' conftest.out`
  2370. if test -z "$ac_err"; then
  2371.   rm -rf conftest*
  2372.   eval "ac_cv_header_$ac_safe=yes"
  2373. else
  2374.   echo "$ac_err" >&5
  2375.   rm -rf conftest*
  2376.   eval "ac_cv_header_$ac_safe=no"
  2377. fi
  2378. rm -f conftest*
  2379. fi
  2380. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2381.   echo "$ac_t""yes" 1>&6
  2382.   echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  2383. ac_lib_var=`echo intl_bindtextdomain | tr '.-/+' '___p'`
  2384. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2385.   echo $ac_n "(cached) $ac_c" 1>&6
  2386. else
  2387.   ac_save_LIBS="$LIBS"
  2388. LIBS="-lintl  $LIBS"
  2389. cat > conftest.$ac_ext <<EOF
  2390. #line 2391 "configure"
  2391. #include "confdefs.h"
  2392.  
  2393. int main() { return 0; }
  2394. int t() {
  2395. bindtextdomain()
  2396. ; return 0; }
  2397. EOF
  2398. if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2399.   rm -rf conftest*
  2400.   eval "ac_cv_lib_$ac_lib_var=yes"
  2401. else
  2402.   rm -rf conftest*
  2403.   eval "ac_cv_lib_$ac_lib_var=no"
  2404. fi
  2405. rm -f conftest*
  2406. LIBS="$ac_save_LIBS"
  2407.  
  2408. fi
  2409. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2410.   echo "$ac_t""yes" 1>&6
  2411.     ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2412.   cat >> confdefs.h <<EOF
  2413. #define $ac_tr_lib 1
  2414. EOF
  2415.  
  2416.   LIBS="-lintl $LIBS"
  2417.  
  2418. else
  2419.   echo "$ac_t""no" 1>&6
  2420. fi
  2421.  
  2422.        echo $ac_n "checking for gettext""... $ac_c" 1>&6
  2423. if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
  2424.   echo $ac_n "(cached) $ac_c" 1>&6
  2425. else
  2426.   cat > conftest.$ac_ext <<EOF
  2427. #line 2428 "configure"
  2428. #include "confdefs.h"
  2429. /* System header to define __stub macros and hopefully few prototypes,
  2430.     which can conflict with char gettext(); below.  */
  2431. #include <assert.h>
  2432. /* Override any gcc2 internal prototype to avoid an error.  */
  2433. char gettext();
  2434.  
  2435. int main() { return 0; }
  2436. int t() {
  2437.  
  2438. /* The GNU C library defines this for functions which it implements
  2439.     to always fail with ENOSYS.  Some functions are actually named
  2440.     something starting with __ and the normal name is an alias.  */
  2441. #if defined (__stub_gettext) || defined (__stub___gettext)
  2442. choke me
  2443. #else
  2444. gettext();
  2445. #endif
  2446.  
  2447. ; return 0; }
  2448. EOF
  2449. if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2450.   rm -rf conftest*
  2451.   eval "ac_cv_func_gettext=yes"
  2452. else
  2453.   rm -rf conftest*
  2454.   eval "ac_cv_func_gettext=no"
  2455. fi
  2456. rm -f conftest*
  2457.  
  2458. fi
  2459. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  2460.   echo "$ac_t""yes" 1>&6
  2461.   cat >> confdefs.h <<\EOF
  2462. #define HAVE_GETTEXT 1
  2463. EOF
  2464.  
  2465.           # Extract the first word of "msgfmt", so it can be a program name with args.
  2466. set dummy msgfmt; ac_word=$2
  2467. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2468. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  2469.   echo $ac_n "(cached) $ac_c" 1>&6
  2470. else
  2471.   case "$MSGFMT" in
  2472.   /*)
  2473.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  2474.   ;;
  2475.   *)
  2476.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2477.   for ac_dir in $PATH; do
  2478.     test -z "$ac_dir" && ac_dir=.
  2479.     if test -f $ac_dir/$ac_word; then
  2480.       ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  2481.       break
  2482.     fi
  2483.   done
  2484.   IFS="$ac_save_ifs"
  2485.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  2486.   ;;
  2487. esac
  2488. fi
  2489. MSGFMT="$ac_cv_path_MSGFMT"
  2490. if test -n "$MSGFMT"; then
  2491.   echo "$ac_t""$MSGFMT" 1>&6
  2492. else
  2493.   echo "$ac_t""no" 1>&6
  2494. fi
  2495.    if echo $MSGFMT | grep openwin > /dev/null; then
  2496.      echo "WARNING: Do not use OpenWin's msgfmt.  (Better remove it.)" >&6
  2497.      ac_cv_path_MSGFMT=msgfmt
  2498.      MSGFMT=msgfmt
  2499.    fi
  2500.           if test "$MSGFMT" != "no"; then
  2501.         for ac_func in dcgettext
  2502. do
  2503. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2504. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2505.   echo $ac_n "(cached) $ac_c" 1>&6
  2506. else
  2507.   cat > conftest.$ac_ext <<EOF
  2508. #line 2509 "configure"
  2509. #include "confdefs.h"
  2510. /* System header to define __stub macros and hopefully few prototypes,
  2511.     which can conflict with char $ac_func(); below.  */
  2512. #include <assert.h>
  2513. /* Override any gcc2 internal prototype to avoid an error.  */
  2514. char $ac_func();
  2515.  
  2516. int main() { return 0; }
  2517. int t() {
  2518.  
  2519. /* The GNU C library defines this for functions which it implements
  2520.     to always fail with ENOSYS.  Some functions are actually named
  2521.     something starting with __ and the normal name is an alias.  */
  2522. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2523. choke me
  2524. #else
  2525. $ac_func();
  2526. #endif
  2527.  
  2528. ; return 0; }
  2529. EOF
  2530. if { (eval echo configure:2531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2531.   rm -rf conftest*
  2532.   eval "ac_cv_func_$ac_func=yes"
  2533. else
  2534.   rm -rf conftest*
  2535.   eval "ac_cv_func_$ac_func=no"
  2536. fi
  2537. rm -f conftest*
  2538.  
  2539. fi
  2540. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2541.   echo "$ac_t""yes" 1>&6
  2542.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2543.   cat >> confdefs.h <<EOF
  2544. #define $ac_tr_func 1
  2545. EOF
  2546.  
  2547. else
  2548.   echo "$ac_t""no" 1>&6
  2549. fi
  2550. done
  2551.  
  2552.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  2553. set dummy gmsgfmt; ac_word=$2
  2554. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2555. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  2556.   echo $ac_n "(cached) $ac_c" 1>&6
  2557. else
  2558.   case "$GMSGFMT" in
  2559.   /*)
  2560.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  2561.   ;;
  2562.   *)
  2563.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2564.   for ac_dir in $PATH; do
  2565.     test -z "$ac_dir" && ac_dir=.
  2566.     if test -f $ac_dir/$ac_word; then
  2567.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  2568.       break
  2569.     fi
  2570.   done
  2571.   IFS="$ac_save_ifs"
  2572.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  2573.   ;;
  2574. esac
  2575. fi
  2576. GMSGFMT="$ac_cv_path_GMSGFMT"
  2577. if test -n "$GMSGFMT"; then
  2578.   echo "$ac_t""$GMSGFMT" 1>&6
  2579. else
  2580.   echo "$ac_t""no" 1>&6
  2581. fi
  2582.    if echo $GMSGFMT | grep openwin > /dev/null; then
  2583.      echo "WARNING: Do not use OpenWin's gmsgfmt.  (Better remove it.)" >&6
  2584.      ac_cv_path_GMSGFMT=gmsgfmt
  2585.      GMSGFMT=gmsgfmt
  2586.    fi
  2587.  
  2588.         # Extract the first word of "xgettext", so it can be a program name with args.
  2589. set dummy xgettext; ac_word=$2
  2590. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2591. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  2592.   echo $ac_n "(cached) $ac_c" 1>&6
  2593. else
  2594.   case "$XGETTEXT" in
  2595.   /*)
  2596.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  2597.   ;;
  2598.   *)
  2599.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2600.   for ac_dir in $PATH; do
  2601.     test -z "$ac_dir" && ac_dir=.
  2602.     if test -f $ac_dir/$ac_word; then
  2603.       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  2604.       break
  2605.     fi
  2606.   done
  2607.   IFS="$ac_save_ifs"
  2608.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  2609.   ;;
  2610. esac
  2611. fi
  2612. XGETTEXT="$ac_cv_path_XGETTEXT"
  2613. if test -n "$XGETTEXT"; then
  2614.   echo "$ac_t""$XGETTEXT" 1>&6
  2615. else
  2616.   echo "$ac_t""no" 1>&6
  2617. fi
  2618.    if echo $XGETTEXT | grep openwin > /dev/null; then
  2619.      echo "WARNING: Do not use OpenWin's xgettext.  (Better remove it.)" >&6
  2620.      ac_cv_path_XGETTEXT=xgettext
  2621.      XGETTEXT=xgettext
  2622.    fi
  2623.  
  2624.         cat > conftest.$ac_ext <<EOF
  2625. #line 2626 "configure"
  2626. #include "confdefs.h"
  2627.  
  2628. int main() { return 0; }
  2629. int t() {
  2630. extern int _nl_msg_cat_cntr;
  2631.                    return _nl_msg_cat_cntr
  2632. ; return 0; }
  2633. EOF
  2634. if { (eval echo configure:2635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2635.   rm -rf conftest*
  2636.   CATOBJEXT=.gmo
  2637.            DATADIRNAME=share
  2638. else
  2639.   rm -rf conftest*
  2640.   CATOBJEXT=.mo
  2641.            DATADIRNAME=lib
  2642. fi
  2643. rm -f conftest*
  2644.  
  2645.         INSTOBJEXT=.mo
  2646.           fi
  2647. else
  2648.   echo "$ac_t""no" 1>&6
  2649. fi
  2650.  
  2651. else
  2652.   echo "$ac_t""no" 1>&6
  2653. fi
  2654.  
  2655.  
  2656.         if test "$CATOBJEXT" = "NONE"; then
  2657.       echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
  2658.       # Check whether --with-catgets or --without-catgets was given.
  2659. if test "${with_catgets+set}" = set; then
  2660.   withval="$with_catgets"
  2661.   nls_cv_use_catgets=$withval
  2662. else
  2663.   nls_cv_use_catgets=no
  2664. fi
  2665.  
  2666.       echo "$ac_t""$nls_cv_use_catgets" 1>&6
  2667.  
  2668.       if test "$nls_cv_use_catgets" = "yes"; then
  2669.                 echo $ac_n "checking for -li""... $ac_c" 1>&6
  2670. ac_lib_var=`echo i_main | tr '.-/+' '___p'`
  2671. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2672.   echo $ac_n "(cached) $ac_c" 1>&6
  2673. else
  2674.   ac_save_LIBS="$LIBS"
  2675. LIBS="-li  $LIBS"
  2676. cat > conftest.$ac_ext <<EOF
  2677. #line 2678 "configure"
  2678. #include "confdefs.h"
  2679.  
  2680. int main() { return 0; }
  2681. int t() {
  2682. main()
  2683. ; return 0; }
  2684. EOF
  2685. if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2686.   rm -rf conftest*
  2687.   eval "ac_cv_lib_$ac_lib_var=yes"
  2688. else
  2689.   rm -rf conftest*
  2690.   eval "ac_cv_lib_$ac_lib_var=no"
  2691. fi
  2692. rm -f conftest*
  2693. LIBS="$ac_save_LIBS"
  2694.  
  2695. fi
  2696. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2697.   echo "$ac_t""yes" 1>&6
  2698.     ac_tr_lib=HAVE_LIB`echo i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2699.   cat >> confdefs.h <<EOF
  2700. #define $ac_tr_lib 1
  2701. EOF
  2702.  
  2703.   LIBS="-li $LIBS"
  2704.  
  2705. else
  2706.   echo "$ac_t""no" 1>&6
  2707. fi
  2708.  
  2709.         echo $ac_n "checking for catgets""... $ac_c" 1>&6
  2710. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  2711.   echo $ac_n "(cached) $ac_c" 1>&6
  2712. else
  2713.   cat > conftest.$ac_ext <<EOF
  2714. #line 2715 "configure"
  2715. #include "confdefs.h"
  2716. /* System header to define __stub macros and hopefully few prototypes,
  2717.     which can conflict with char catgets(); below.  */
  2718. #include <assert.h>
  2719. /* Override any gcc2 internal prototype to avoid an error.  */
  2720. char catgets();
  2721.  
  2722. int main() { return 0; }
  2723. int t() {
  2724.  
  2725. /* The GNU C library defines this for functions which it implements
  2726.     to always fail with ENOSYS.  Some functions are actually named
  2727.     something starting with __ and the normal name is an alias.  */
  2728. #if defined (__stub_catgets) || defined (__stub___catgets)
  2729. choke me
  2730. #else
  2731. catgets();
  2732. #endif
  2733.  
  2734. ; return 0; }
  2735. EOF
  2736. if { (eval echo configure:2737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2737.   rm -rf conftest*
  2738.   eval "ac_cv_func_catgets=yes"
  2739. else
  2740.   rm -rf conftest*
  2741.   eval "ac_cv_func_catgets=no"
  2742. fi
  2743. rm -f conftest*
  2744.  
  2745. fi
  2746. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  2747.   echo "$ac_t""yes" 1>&6
  2748.   cat >> confdefs.h <<\EOF
  2749. #define HAVE_CATGETS 1
  2750. EOF
  2751.  
  2752.            INTLOBJS="\$(CATOBJS)"
  2753.            # Extract the first word of "gencat", so it can be a program name with args.
  2754. set dummy gencat; ac_word=$2
  2755. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2756. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  2757.   echo $ac_n "(cached) $ac_c" 1>&6
  2758. else
  2759.   case "$GENCAT" in
  2760.   /*)
  2761.   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  2762.   ;;
  2763.   *)
  2764.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2765.   for ac_dir in $PATH; do
  2766.     test -z "$ac_dir" && ac_dir=.
  2767.     if test -f $ac_dir/$ac_word; then
  2768.       ac_cv_path_GENCAT="$ac_dir/$ac_word"
  2769.       break
  2770.     fi
  2771.   done
  2772.   IFS="$ac_save_ifs"
  2773.   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  2774.   ;;
  2775. esac
  2776. fi
  2777. GENCAT="$ac_cv_path_GENCAT"
  2778. if test -n "$GENCAT"; then
  2779.   echo "$ac_t""$GENCAT" 1>&6
  2780. else
  2781.   echo "$ac_t""no" 1>&6
  2782. fi
  2783.            if test "$GENCAT" != "no"; then
  2784.          for ac_prog in gmsgfmt msgfmt
  2785. do
  2786. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2787. set dummy $ac_prog; ac_word=$2
  2788. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2789. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  2790.   echo $ac_n "(cached) $ac_c" 1>&6
  2791. else
  2792.   case "$GMSGFMT" in
  2793.   /*)
  2794.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  2795.   ;;
  2796.   *)
  2797.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2798.   for ac_dir in $PATH; do
  2799.     test -z "$ac_dir" && ac_dir=.
  2800.     if test -f $ac_dir/$ac_word; then
  2801.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  2802.       break
  2803.     fi
  2804.   done
  2805.   IFS="$ac_save_ifs"
  2806.   ;;
  2807. esac
  2808. fi
  2809. GMSGFMT="$ac_cv_path_GMSGFMT"
  2810. if test -n "$GMSGFMT"; then
  2811.   echo "$ac_t""$GMSGFMT" 1>&6
  2812. else
  2813.   echo "$ac_t""no" 1>&6
  2814. fi
  2815.  
  2816. test -n "$GMSGFMT" && break
  2817. done
  2818. test -n "$GMSGFMT" || GMSGFMT="msgfmt"
  2819.  
  2820.          # Extract the first word of "xgettext", so it can be a program name with args.
  2821. set dummy xgettext; ac_word=$2
  2822. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2823. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  2824.   echo $ac_n "(cached) $ac_c" 1>&6
  2825. else
  2826.   case "$XGETTEXT" in
  2827.   /*)
  2828.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  2829.   ;;
  2830.   *)
  2831.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2832.   for ac_dir in $PATH; do
  2833.     test -z "$ac_dir" && ac_dir=.
  2834.     if test -f $ac_dir/$ac_word; then
  2835.       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  2836.       break
  2837.     fi
  2838.   done
  2839.   IFS="$ac_save_ifs"
  2840.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  2841.   ;;
  2842. esac
  2843. fi
  2844. XGETTEXT="$ac_cv_path_XGETTEXT"
  2845. if test -n "$XGETTEXT"; then
  2846.   echo "$ac_t""$XGETTEXT" 1>&6
  2847. else
  2848.   echo "$ac_t""no" 1>&6
  2849. fi
  2850.    if echo $XGETTEXT | grep openwin > /dev/null; then
  2851.      echo "WARNING: Do not use OpenWin's xgettext.  (Better remove it.)" >&6
  2852.      ac_cv_path_XGETTEXT=xgettext
  2853.      XGETTEXT=xgettext
  2854.    fi
  2855.  
  2856.          USE_INCLUDED_LIBINTL=yes
  2857.          CATOBJEXT=.cat
  2858.          INSTOBJEXT=.cat
  2859.          DATADIRNAME=lib
  2860.          INTLDEPS="../intl/libintl.a"
  2861.          INTLLIBS=$INTLDEPS
  2862.          LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  2863.          nls_cv_header_intl=intl/libintl.h
  2864.          nls_cv_header_libgt=intl/libgettext.h
  2865.            fi
  2866. else
  2867.   echo "$ac_t""no" 1>&6
  2868. fi
  2869.  
  2870.       fi
  2871.         fi
  2872.  
  2873.         if test "$CATOBJEXT" = "NONE"; then
  2874.                   nls_cv_use_gnu_gettext=yes
  2875.         fi
  2876.       fi
  2877.  
  2878.       if test "$nls_cv_use_gnu_gettext" = "yes"; then
  2879.                 INTLOBJS="\$(GETTOBJS)"
  2880.         # Extract the first word of "msgfmt", so it can be a program name with args.
  2881. set dummy msgfmt; ac_word=$2
  2882. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2883. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  2884.   echo $ac_n "(cached) $ac_c" 1>&6
  2885. else
  2886.   case "$MSGFMT" in
  2887.   /*)
  2888.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  2889.   ;;
  2890.   *)
  2891.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2892.   for ac_dir in $PATH; do
  2893.     test -z "$ac_dir" && ac_dir=.
  2894.     if test -f $ac_dir/$ac_word; then
  2895.       ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  2896.       break
  2897.     fi
  2898.   done
  2899.   IFS="$ac_save_ifs"
  2900.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  2901.   ;;
  2902. esac
  2903. fi
  2904. MSGFMT="$ac_cv_path_MSGFMT"
  2905. if test -n "$MSGFMT"; then
  2906.   echo "$ac_t""$MSGFMT" 1>&6
  2907. else
  2908.   echo "$ac_t""no" 1>&6
  2909. fi
  2910.    if echo $MSGFMT | grep openwin > /dev/null; then
  2911.      echo "WARNING: Do not use OpenWin's msgfmt.  (Better remove it.)" >&6
  2912.      ac_cv_path_MSGFMT=msgfmt
  2913.      MSGFMT=msgfmt
  2914.    fi
  2915.  
  2916.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  2917. set dummy gmsgfmt; ac_word=$2
  2918. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2919. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  2920.   echo $ac_n "(cached) $ac_c" 1>&6
  2921. else
  2922.   case "$GMSGFMT" in
  2923.   /*)
  2924.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  2925.   ;;
  2926.   *)
  2927.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2928.   for ac_dir in $PATH; do
  2929.     test -z "$ac_dir" && ac_dir=.
  2930.     if test -f $ac_dir/$ac_word; then
  2931.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  2932.       break
  2933.     fi
  2934.   done
  2935.   IFS="$ac_save_ifs"
  2936.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  2937.   ;;
  2938. esac
  2939. fi
  2940. GMSGFMT="$ac_cv_path_GMSGFMT"
  2941. if test -n "$GMSGFMT"; then
  2942.   echo "$ac_t""$GMSGFMT" 1>&6
  2943. else
  2944.   echo "$ac_t""no" 1>&6
  2945. fi
  2946.    if echo $GMSGFMT | grep openwin > /dev/null; then
  2947.      echo "WARNING: Do not use OpenWin's gmsgfmt.  (Better remove it.)" >&6
  2948.      ac_cv_path_GMSGFMT=gmsgfmt
  2949.      GMSGFMT=gmsgfmt
  2950.    fi
  2951.  
  2952.         # Extract the first word of "xgettext", so it can be a program name with args.
  2953. set dummy xgettext; ac_word=$2
  2954. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2955. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  2956.   echo $ac_n "(cached) $ac_c" 1>&6
  2957. else
  2958.   case "$XGETTEXT" in
  2959.   /*)
  2960.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  2961.   ;;
  2962.   *)
  2963.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2964.   for ac_dir in $PATH; do
  2965.     test -z "$ac_dir" && ac_dir=.
  2966.     if test -f $ac_dir/$ac_word; then
  2967.       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  2968.       break
  2969.     fi
  2970.   done
  2971.   IFS="$ac_save_ifs"
  2972.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  2973.   ;;
  2974. esac
  2975. fi
  2976. XGETTEXT="$ac_cv_path_XGETTEXT"
  2977. if test -n "$XGETTEXT"; then
  2978.   echo "$ac_t""$XGETTEXT" 1>&6
  2979. else
  2980.   echo "$ac_t""no" 1>&6
  2981. fi
  2982.    if echo $XGETTEXT | grep openwin > /dev/null; then
  2983.      echo "WARNING: Do not use OpenWin's xgettext.  (Better remove it.)" >&6
  2984.      ac_cv_path_XGETTEXT=xgettext
  2985.      XGETTEXT=xgettext
  2986.    fi
  2987.  
  2988.         
  2989.     USE_INCLUDED_LIBINTL=yes
  2990.         CATOBJEXT=.gmo
  2991.         INSTOBJEXT=.mo
  2992.         DATADIRNAME=share
  2993.     INTLDEPS="../intl/libintl.a"
  2994.     INTLLIBS=$INTLDEPS
  2995.     LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  2996.         nls_cv_header_intl=intl/libintl.h
  2997.         nls_cv_header_libgt=intl/libgettext.h
  2998.       fi
  2999.  
  3000.             if test "$XGETTEXT" != ":"; then
  3001.             if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  3002.       : ;
  3003.     else
  3004.       echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
  3005.       XGETTEXT=":"
  3006.     fi
  3007.       fi
  3008.  
  3009.       # We need to process the po/ directory.
  3010.       POSUB=po
  3011.     else
  3012.       DATADIRNAME=share
  3013.       nls_cv_header_intl=intl/libintl.h
  3014.       nls_cv_header_libgt=intl/libgettext.h
  3015.     fi
  3016.  
  3017.     # If this is used in GNU gettext we have to set USE_NLS to `yes'
  3018.     # because some of the sources are only built for this goal.
  3019.     if test "$PACKAGE" = gettext; then
  3020.       USE_NLS=yes
  3021.       USE_INCLUDED_LIBINTL=yes
  3022.     fi
  3023.  
  3024.                 for lang in $ALL_LINGUAS; do
  3025.       GMOFILES="$GMOFILES $lang.gmo"
  3026.       POFILES="$POFILES $lang.po"
  3027.     done
  3028.  
  3029.         
  3030.     
  3031.     
  3032.     
  3033.     
  3034.     
  3035.     
  3036.     
  3037.     
  3038.     
  3039.     
  3040.   
  3041.  
  3042.    if test "x$CATOBJEXT" != "x"; then
  3043.      if test "x$ALL_LINGUAS" = "x"; then
  3044.        LINGUAS=
  3045.      else
  3046.        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  3047.        NEW_LINGUAS=
  3048.        for lang in ${LINGUAS=$ALL_LINGUAS}; do
  3049.          case "$ALL_LINGUAS" in
  3050.           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  3051.          esac
  3052.        done
  3053.        LINGUAS=$NEW_LINGUAS
  3054.        echo "$ac_t""$LINGUAS" 1>&6
  3055.      fi
  3056.  
  3057.           if test -n "$LINGUAS"; then
  3058.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  3059.      fi
  3060.    fi
  3061.  
  3062.             test -d intl || mkdir intl
  3063.    if test "$CATOBJEXT" = ".cat"; then
  3064.      ac_safe=`echo "linux/version.h" | tr './\055' '___'`
  3065. echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  3066. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3067.   echo $ac_n "(cached) $ac_c" 1>&6
  3068. else
  3069.   cat > conftest.$ac_ext <<EOF
  3070. #line 3071 "configure"
  3071. #include "confdefs.h"
  3072. #include <linux/version.h>
  3073. EOF
  3074. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3075. { (eval echo configure:3076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3076. ac_err=`grep -v '^ *+' conftest.out`
  3077. if test -z "$ac_err"; then
  3078.   rm -rf conftest*
  3079.   eval "ac_cv_header_$ac_safe=yes"
  3080. else
  3081.   echo "$ac_err" >&5
  3082.   rm -rf conftest*
  3083.   eval "ac_cv_header_$ac_safe=no"
  3084. fi
  3085. rm -f conftest*
  3086. fi
  3087. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3088.   echo "$ac_t""yes" 1>&6
  3089.   msgformat=linux
  3090. else
  3091.   echo "$ac_t""no" 1>&6
  3092. msgformat=xopen
  3093. fi
  3094.  
  3095.  
  3096.                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  3097.    fi
  3098.       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  3099.      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
  3100.  
  3101.             if test "$PACKAGE" = "gettext"; then
  3102.      GT_NO="#NO#"
  3103.      GT_YES=
  3104.    else
  3105.      GT_NO=
  3106.      GT_YES="#YES#"
  3107.    fi
  3108.    
  3109.    
  3110.  
  3111.          test -d po || mkdir po
  3112.    if test "x$srcdir" != "x."; then
  3113.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  3114.        posrcprefix="$srcdir/"
  3115.      else
  3116.        posrcprefix="../$srcdir/"
  3117.      fi
  3118.    else
  3119.      posrcprefix="../"
  3120.    fi
  3121.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  3122.     < $srcdir/po/POTFILES.in > po/POTFILES
  3123.   
  3124.  
  3125.  
  3126. cat >> confdefs.h <<EOF
  3127. #define PATH_SEPARATOR ':'
  3128. EOF
  3129.  
  3130.  
  3131.  
  3132.  
  3133. # Extract the first word of "perl", so it can be a program name with args.
  3134. set dummy perl; ac_word=$2
  3135. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3136. if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  3137.   echo $ac_n "(cached) $ac_c" 1>&6
  3138. else
  3139.   case "$PERL" in
  3140.   /*)
  3141.   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  3142.   ;;
  3143.   *)
  3144.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3145.   for ac_dir in $PATH; do
  3146.     test -z "$ac_dir" && ac_dir=.
  3147.     if test -f $ac_dir/$ac_word; then
  3148.       ac_cv_path_PERL="$ac_dir/$ac_word"
  3149.       break
  3150.     fi
  3151.   done
  3152.   IFS="$ac_save_ifs"
  3153.   ;;
  3154. esac
  3155. fi
  3156. PERL="$ac_cv_path_PERL"
  3157. if test -n "$PERL"; then
  3158.   echo "$ac_t""$PERL" 1>&6
  3159. else
  3160.   echo "$ac_t""no" 1>&6
  3161. fi
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170. trap '' 1 2 15
  3171. cat > confcache <<\EOF
  3172. # This file is a shell script that caches the results of configure
  3173. # tests run on this system so they can be shared between configure
  3174. # scripts and configure runs.  It is not useful on other systems.
  3175. # If it contains results you don't want to keep, you may remove or edit it.
  3176. #
  3177. # By default, configure uses ./config.cache as the cache file,
  3178. # creating it if it does not exist already.  You can give configure
  3179. # the --cache-file=FILE option to use a different cache file; that is
  3180. # what configure does when it calls configure scripts in
  3181. # subdirectories, so they share the cache.
  3182. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3183. # config.status only pays attention to the cache file if you give it the
  3184. # --recheck option to rerun configure.
  3185. #
  3186. EOF
  3187. # Ultrix sh set writes to stderr and can't be redirected directly,
  3188. # and sets the high bit in the cache file unless we assign to the vars.
  3189. (set) 2>&1 |
  3190.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3191.   >> confcache
  3192. if cmp -s $cache_file confcache; then
  3193.   :
  3194. else
  3195.   if test -w $cache_file; then
  3196.     echo "updating cache $cache_file"
  3197.     cat confcache > $cache_file
  3198.   else
  3199.     echo "not updating unwritable cache $cache_file"
  3200.   fi
  3201. fi
  3202. rm -f confcache
  3203.  
  3204. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3205.  
  3206. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3207. # Let make expand exec_prefix.
  3208. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3209.  
  3210. # Any assignment to VPATH causes Sun make to only execute
  3211. # the first set of double-colon rules, so remove it if not needed.
  3212. # If there is a colon in the path, we need to keep it.
  3213. if test "x$srcdir" = x.; then
  3214.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3215. fi
  3216.  
  3217. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3218.  
  3219. DEFS=-DHAVE_CONFIG_H
  3220.  
  3221. # Without the "./", some shells look in PATH for config.status.
  3222. : ${CONFIG_STATUS=./config.status}
  3223.  
  3224. echo creating $CONFIG_STATUS
  3225. rm -f $CONFIG_STATUS
  3226. cat > $CONFIG_STATUS <<EOF
  3227. #! /bin/sh
  3228. # Generated automatically by configure.
  3229. # Run this file to recreate the current configuration.
  3230. # This directory was configured as follows,
  3231. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3232. #
  3233. # $0 $ac_configure_args
  3234. #
  3235. # Compiler output produced by configure, useful for debugging
  3236. # configure, is in ./config.log if it exists.
  3237.  
  3238. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3239. for ac_option
  3240. do
  3241.   case "\$ac_option" in
  3242.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3243.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3244.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3245.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3246.     echo "$CONFIG_STATUS generated by autoconf version 2.8"
  3247.     exit 0 ;;
  3248.   -help | --help | --hel | --he | --h)
  3249.     echo "\$ac_cs_usage"; exit 0 ;;
  3250.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3251.   esac
  3252. done
  3253.  
  3254. ac_given_srcdir=$srcdir
  3255. ac_given_INSTALL="$INSTALL"
  3256.  
  3257. trap 'rm -fr `echo "Makefile compat/Makefile afm/Makefile afmlib/Makefile src/Makefile lib/Makefile scripts/Makefile intl/Makefile po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3258. EOF
  3259. cat >> $CONFIG_STATUS <<EOF
  3260.  
  3261. # Protect against being on the right side of a sed subst in config.status.
  3262. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3263.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3264. $ac_vpsub
  3265. $extrasub
  3266. s%@CFLAGS@%$CFLAGS%g
  3267. s%@CPPFLAGS@%$CPPFLAGS%g
  3268. s%@CXXFLAGS@%$CXXFLAGS%g
  3269. s%@DEFS@%$DEFS%g
  3270. s%@LDFLAGS@%$LDFLAGS%g
  3271. s%@LIBS@%$LIBS%g
  3272. s%@exec_prefix@%$exec_prefix%g
  3273. s%@prefix@%$prefix%g
  3274. s%@program_transform_name@%$program_transform_name%g
  3275. s%@bindir@%$bindir%g
  3276. s%@sbindir@%$sbindir%g
  3277. s%@libexecdir@%$libexecdir%g
  3278. s%@datadir@%$datadir%g
  3279. s%@sysconfdir@%$sysconfdir%g
  3280. s%@sharedstatedir@%$sharedstatedir%g
  3281. s%@localstatedir@%$localstatedir%g
  3282. s%@libdir@%$libdir%g
  3283. s%@includedir@%$includedir%g
  3284. s%@oldincludedir@%$oldincludedir%g
  3285. s%@infodir@%$infodir%g
  3286. s%@mandir@%$mandir%g
  3287. s%@PACKAGE@%$PACKAGE%g
  3288. s%@VERSION@%$VERSION%g
  3289. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3290. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3291. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  3292. s%@SET_MAKE@%$SET_MAKE%g
  3293. s%@CC@%$CC%g
  3294. s%@U@%$U%g
  3295. s%@ANSI2KNR@%$ANSI2KNR%g
  3296. s%@MEDIA@%$MEDIA%g
  3297. s%@CPP@%$CPP%g
  3298. s%@RANLIB@%$RANLIB%g
  3299. s%@ALLOCA@%$ALLOCA%g
  3300. s%@USE_NLS@%$USE_NLS%g
  3301. s%@MSGFMT@%$MSGFMT%g
  3302. s%@GMSGFMT@%$GMSGFMT%g
  3303. s%@XGETTEXT@%$XGETTEXT%g
  3304. s%@GENCAT@%$GENCAT%g
  3305. s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
  3306. s%@CATALOGS@%$CATALOGS%g
  3307. s%@CATOBJEXT@%$CATOBJEXT%g
  3308. s%@DATADIRNAME@%$DATADIRNAME%g
  3309. s%@GMOFILES@%$GMOFILES%g
  3310. s%@INSTOBJEXT@%$INSTOBJEXT%g
  3311. s%@INTLDEPS@%$INTLDEPS%g
  3312. s%@INTLLIBS@%$INTLLIBS%g
  3313. s%@INTLOBJS@%$INTLOBJS%g
  3314. s%@POFILES@%$POFILES%g
  3315. s%@POSUB@%$POSUB%g
  3316. s%@GT_NO@%$GT_NO%g
  3317. s%@GT_YES@%$GT_YES%g
  3318. s%@PERL@%$PERL%g
  3319. s%@LIBOBJS@%$LIBOBJS%g
  3320.  
  3321. CEOF
  3322. EOF
  3323. cat >> $CONFIG_STATUS <<EOF
  3324.  
  3325. CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile afm/Makefile afmlib/Makefile src/Makefile lib/Makefile scripts/Makefile intl/Makefile po/Makefile.in"}
  3326. EOF
  3327. cat >> $CONFIG_STATUS <<\EOF
  3328. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3329.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3330.   case "$ac_file" in
  3331.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3332.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3333.   *) ac_file_in="${ac_file}.in" ;;
  3334.   esac
  3335.  
  3336.   # Adjust relative srcdir, etc. for subdirectories.
  3337.  
  3338.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3339.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3340.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3341.     # The file is in a subdirectory.
  3342.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3343.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3344.     # A "../" for each directory in $ac_dir_suffix.
  3345.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3346.   else
  3347.     ac_dir_suffix= ac_dots=
  3348.   fi
  3349.  
  3350.   case "$ac_given_srcdir" in
  3351.   .)  srcdir=.
  3352.       if test -z "$ac_dots"; then top_srcdir=.
  3353.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3354.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3355.   *) # Relative path.
  3356.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3357.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3358.   esac
  3359.  
  3360.   case "$ac_given_INSTALL" in
  3361.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3362.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3363.   esac
  3364.   echo creating "$ac_file"
  3365.   rm -f "$ac_file"
  3366.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3367.   case "$ac_file" in
  3368.   *Makefile*) ac_comsub="1i\\
  3369. # $configure_input" ;;
  3370.   *) ac_comsub= ;;
  3371.   esac
  3372.   sed -e "$ac_comsub
  3373. s%@configure_input@%$configure_input%g
  3374. s%@srcdir@%$srcdir%g
  3375. s%@top_srcdir@%$top_srcdir%g
  3376. s%@INSTALL@%$INSTALL%g
  3377. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3378. fi; done
  3379. rm -f conftest.subs
  3380.  
  3381. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3382. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3383. #
  3384. # ac_d sets the value in "#define NAME VALUE" lines.
  3385. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3386. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3387. ac_dC='\3'
  3388. ac_dD='%g'
  3389. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3390. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3391. ac_uB='\([     ]\)%\1#\2define\3'
  3392. ac_uC=' '
  3393. ac_uD='\4%g'
  3394. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3395. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3396. ac_eB='$%\1#\2define\3'
  3397. ac_eC=' '
  3398. ac_eD='%g'
  3399.  
  3400. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  3401. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3402.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3403.   case "$ac_file" in
  3404.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3405.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3406.   *) ac_file_in="${ac_file}.in" ;;
  3407.   esac
  3408.  
  3409.   echo creating $ac_file
  3410.  
  3411.   rm -f conftest.frag conftest.in conftest.out
  3412.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3413.  
  3414. EOF
  3415.  
  3416. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3417. # the proper values into config.h.in to produce config.h.  And first:
  3418. # Protect against being on the right side of a sed subst in config.status.
  3419. # Protect against being in an unquoted here document in config.status.
  3420. rm -f conftest.vals
  3421. cat > conftest.hdr <<\EOF
  3422. s/[\\&%]/\\&/g
  3423. s%[\\$`]%\\&%g
  3424. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3425. s%ac_d%ac_u%gp
  3426. s%ac_u%ac_e%gp
  3427. EOF
  3428. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3429. rm -f conftest.hdr
  3430.  
  3431. # This sed command replaces #undef with comments.  This is necessary, for
  3432. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3433. # on some systems where configure will not decide to define it.
  3434. cat >> conftest.vals <<\EOF
  3435. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3436. EOF
  3437.  
  3438. # Break up conftest.vals because some shells have a limit on
  3439. # the size of here documents, and old seds have small limits too.
  3440. # Maximum number of lines to put in a single here document.
  3441. ac_max_here_lines=12
  3442.  
  3443. rm -f conftest.tail
  3444. while :
  3445. do
  3446.   ac_lines=`grep -c . conftest.vals`
  3447.   # grep -c gives empty output for an empty file on some AIX systems.
  3448.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3449.   # Write a limited-size here document to conftest.frag.
  3450.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3451.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3452.   echo 'CEOF
  3453.   sed -f conftest.frag conftest.in > conftest.out
  3454.   rm -f conftest.in
  3455.   mv conftest.out conftest.in
  3456. ' >> $CONFIG_STATUS
  3457.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3458.   rm -f conftest.vals
  3459.   mv conftest.tail conftest.vals
  3460. done
  3461. rm -f conftest.vals
  3462.  
  3463. cat >> $CONFIG_STATUS <<\EOF
  3464.   rm -f conftest.frag conftest.h
  3465.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3466.   cat conftest.in >> conftest.h
  3467.   rm -f conftest.in
  3468.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3469.     echo "$ac_file is unchanged"
  3470.     rm -f conftest.h
  3471.   else
  3472.     rm -f $ac_file
  3473.     mv conftest.h $ac_file
  3474.   fi
  3475. fi; done
  3476.  
  3477. EOF
  3478.  
  3479. cat >> $CONFIG_STATUS <<EOF
  3480. ac_sources="$nls_cv_header_libgt"
  3481. ac_dests="$nls_cv_header_intl"
  3482. EOF
  3483.  
  3484. cat >> $CONFIG_STATUS <<\EOF
  3485. srcdir=$ac_given_srcdir
  3486. while test -n "$ac_sources"; do
  3487.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  3488.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  3489.  
  3490.   echo "linking $srcdir/$ac_source to $ac_dest"
  3491.  
  3492.   if test ! -r $srcdir/$ac_source; then
  3493.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  3494.   fi
  3495.   rm -f $ac_dest
  3496.  
  3497.   # Make relative symlinks.
  3498.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3499.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  3500.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  3501.     # The dest file is in a subdirectory.
  3502.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  3503.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  3504.     # A "../" for each directory in $ac_dest_dir_suffix.
  3505.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  3506.   else
  3507.     ac_dest_dir_suffix= ac_dots=
  3508.   fi
  3509.  
  3510.   case "$srcdir" in
  3511.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  3512.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  3513.   esac
  3514.  
  3515.   # Make a symlink if possible; otherwise try a hard link.
  3516.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  3517.     ln $srcdir/$ac_source $ac_dest; then :
  3518.   else
  3519.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  3520.   fi
  3521. done
  3522.  
  3523. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile; date > stamp-h
  3524. exit 0
  3525. EOF
  3526. chmod +x $CONFIG_STATUS
  3527. rm -fr confdefs* $ac_clean_files
  3528. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3529.  
  3530.